CancelWithStatus() public method

public CancelWithStatus ( Grpc.Core.Status status ) : void
status Grpc.Core.Status
return void
Esempio n. 1
0
 public void CancelWithStatus(Status status)
 {
     lock (myLock)
     {
         CheckNotDisposed();
         CheckStarted();
         cancelRequested = true;
     }
     // grpc_call_cancel_with_status is threadsafe
     call.CancelWithStatus(status);
 }
Esempio n. 2
0
        /// <summary>
        /// Requests cancelling the call with given status.
        /// </summary>
        public void CancelWithStatus(Status status)
        {
            lock (myLock)
            {
                Preconditions.CheckState(started);
                cancelRequested = true;

                if (!disposed)
                {
                    call.CancelWithStatus(status);
                }
            }
        }