Cancel() public method

public Cancel ( ) : void
return void
Esempio n. 1
0
 public void Cancel()
 {
     lock (myLock)
     {
         CheckNotDisposed();
         CheckStarted();
         cancelRequested = true;
     }
     // grpc_call_cancel is threadsafe
     call.Cancel();
 }
Esempio n. 2
0
        /// <summary>
        /// Requests cancelling the call.
        /// </summary>
        public void Cancel()
        {
            lock (myLock)
            {
                Preconditions.CheckState(started);
                cancelRequested = true;

                if (!disposed)
                {
                    call.Cancel();
                }
            }
        }