Пример #1
0
 public void Close()
 {
     if (!IsClosed)
     {
         _closed.Set(true);
         Mailbox.Close();
         _dispatcherTokenSource.Cancel();
         _dispatcherTokenSource.Dispose();
         _backoffTokenSource.Dispose();
     }
 }
Пример #2
0
 public void Close()
 {
     closed.Set(true);
     Mailbox.Close();
 }