protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { WebSocketClient.Close(); WebSocketClient = null; BotClient.Dispose(); BotClient = null; } disposedValue = true; } }
public override void Dispose() { BotClient.Dispose(); }