public void StartServerSide(ReceivedCloseOnServerHandler callback) { using (completionQueue.NewScope()) { var ctx = BatchContextSafeHandle.Create(); completionRegistry.RegisterBatchCompletion(ctx, (success, context) => callback(success, context.GetReceivedCloseOnServerCancelled())); pinvoke.grpcsharp_call_start_serverside(this, ctx).CheckOk(); } }