diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2017-03-08 19:30:21 +0100 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2017-03-08 19:30:21 +0100 |
commit | b7462944ba184c24f545470a5bf631b59584ec4b (patch) | |
tree | 35e13d55f87d09f9ee5c619daf7ae3cf50d48c03 /src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs | |
parent | e946ca3aaac42c4a5276e5baaa4325162e88f0b1 (diff) |
adapt C# to new cq_create API
Diffstat (limited to 'src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs')
-rw-r--r-- | src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs b/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs index 6c9a31921e..577d7044a5 100644 --- a/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs +++ b/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs @@ -51,14 +51,20 @@ namespace Grpc.Core.Internal { } - public static CompletionQueueSafeHandle Create() + /// <summary> + /// Create a completion queue that can only be used for Pluck operations. + /// </summary> + public static CompletionQueueSafeHandle CreateSync() { - return Native.grpcsharp_completion_queue_create(); + return Native.grpcsharp_completion_queue_create_sync(); } - public static CompletionQueueSafeHandle Create(CompletionRegistry completionRegistry) + /// <summary> + /// Create a completion queue that can only be used for Next operations. + /// </summary> + public static CompletionQueueSafeHandle CreateAsync(CompletionRegistry completionRegistry) { - var cq = Native.grpcsharp_completion_queue_create(); + var cq = Native.grpcsharp_completion_queue_create_async(); cq.completionRegistry = completionRegistry; return cq; } |