public async Task Disconnect() { _twitchClient.OnDisconnected += TwitchClientOnOnDisconnected; _twitchClient.Disconnect(); await _disconnectionCompletionTask.Task; }
public void Stop() { _log.LogInformation("Service is stopping"); _discord.StopAsync().Wait(); _twitch.Disconnect(); _mixer.Stop(); }
public Task StopAsync(CancellationToken cancellationToken) { _twitchClient.Disconnect(); return(Task.CompletedTask); }
public void Dispose() { _twitchClient.Disconnect(); }