diff options
author | ncteisen <ncteisen@gmail.com> | 2017-11-21 16:22:00 -0500 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2017-11-21 16:22:00 -0500 |
commit | e8bb8749ed8bc7e76f5de91370c7d8600059ff98 (patch) | |
tree | 01274952c6144f919ebfb2cecb73637dd37397f0 /src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs | |
parent | abdc290d26a059aa814d32da4e09643db9eaf0d3 (diff) | |
parent | 9c26f6866ac31c5ebe1d4bb48e81cdda5264921a (diff) |
Merge branch 'master' of https://github.com/grpc/grpc into no-more-extern-c
Diffstat (limited to 'src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs')
-rw-r--r-- | src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs b/src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs index f826a17bad..1eeb0e3d97 100644 --- a/src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs +++ b/src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs @@ -64,10 +64,10 @@ namespace Grpc.Core.Internal return Native.grpcsharp_channel_check_connectivity_state(this, tryToConnect ? 1 : 0); } - public void WatchConnectivityState(ChannelState lastObservedState, Timespec deadline, CompletionQueueSafeHandle cq, BatchCompletionDelegate callback) + public void WatchConnectivityState(ChannelState lastObservedState, Timespec deadline, CompletionQueueSafeHandle cq, BatchCompletionDelegate callback, object callbackState) { var ctx = BatchContextSafeHandle.Create(); - cq.CompletionRegistry.RegisterBatchCompletion(ctx, callback); + cq.CompletionRegistry.RegisterBatchCompletion(ctx, callback, callbackState); Native.grpcsharp_channel_watch_connectivity_state(this, lastObservedState, deadline, cq, ctx); } |