public void StartReceiveInitialMetadata(ReceivedResponseHeadersHandler callback) { var ctx = BatchContextSafeHandle.Create(); completionRegistry.RegisterBatchCompletion(ctx, (success, context) => callback(success, context.GetReceivedInitialMetadata())); grpcsharp_call_recv_initial_metadata(this, ctx).CheckOk(); }
public void StartReceiveInitialMetadata(ReceivedResponseHeadersHandler callback) { using (completionQueue.NewScope()) { var ctx = BatchContextSafeHandle.Create(); completionQueue.CompletionRegistry.RegisterBatchCompletion(ctx, (success, context) => callback(success, context.GetReceivedInitialMetadata())); Native.grpcsharp_call_recv_initial_metadata(this, ctx).CheckOk(); } }
public void StartReceiveInitialMetadata(ReceivedResponseHeadersHandler callback) { ReceivedResponseHeadersHandler = callback; }
public void StartReceiveInitialMetadata(ReceivedResponseHeadersHandler callback) { ReceivedResponseHeadersHandler = callback; }