示例#1
0
 public void Dispose()
 {
     if (messageBus != null)
     {
         messageBus.Dispose();
     }
     if (tokenSource != null)
     {
         tokenSource.Dispose();
     }
 }
 public void Dispose()
 {
     messageBus?.Dispose();
     tokenSource?.Dispose();
 }