public async Task <bool> Execute(string command) { await _botHost.ReleaseMonitorJob(); await _botHost.LogOff(); _botLogger.LogWarning("Successfully log out. Use command:`reboot` to reconnect."); return(true); }
public async Task <bool> Execute(string command) { await _botHost.ReleaseMonitorJob(); _botHost.ConnectTask = _botHost.Connect((websocketAddress) => { _botHost.MonitorTask = _botHost.MonitorEvents(websocketAddress); }); await _botHost.ConnectTask; return(true); }
public async Task <bool> Execute(string command) { await _botHost.ReleaseMonitorJob(); return(false); }