示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             WebSocketClient.Close();
             WebSocketClient = null;
             BotClient.Dispose();
             BotClient = null;
         }
         disposedValue = true;
     }
 }
示例#2
0
 public override void Dispose()
 {
     BotClient.Dispose();
 }