diff options
Diffstat (limited to 'src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs')
-rw-r--r-- | src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs b/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs index 3f01fdbfd0..6bff923c55 100644 --- a/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs +++ b/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs @@ -1,5 +1,4 @@ #region Copyright notice and license - // Copyright 2015, Google Inc. // All rights reserved. // @@ -28,9 +27,7 @@ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - #endregion - using System; using System.Runtime.InteropServices; using System.Threading.Tasks; @@ -40,8 +37,8 @@ namespace Grpc.Core.Internal /// <summary> /// grpc_completion_queue from <grpc/grpc.h> /// </summary> - internal class CompletionQueueSafeHandle : SafeHandleZeroIsInvalid - { + internal class CompletionQueueSafeHandle : SafeHandleZeroIsInvalid + { [DllImport("grpc_csharp_ext.dll")] static extern CompletionQueueSafeHandle grpcsharp_completion_queue_create(); @@ -73,11 +70,11 @@ namespace Grpc.Core.Internal grpcsharp_completion_queue_shutdown(this); } - protected override bool ReleaseHandle() + protected override bool ReleaseHandle() { grpcsharp_completion_queue_destroy(handle); - return true; - } - } + return true; + } + } } |