public CommandResponse Handle(NestedTestTokenCancellableCmd command)
 {
     for (int i = 0; i < 5; i++)
     {
         if (command.IsCanceled)
         {
             return(command.Canceled());
         }
         Thread.Sleep(200);
     }
     return(command.Succeed());
 }
 public CommandResponse Handle(NestedTestTokenCancellableCmd command)
 {
     Interlocked.Increment(ref _gotNestedCmd);
     TokenSource.Cancel();
     return(command.IsCanceled ? command.Canceled() : command.Succeed());
 }