Example #1
0
        public async Task Disconnect()
        {
            _twitchClient.OnDisconnected += TwitchClientOnOnDisconnected;
            _twitchClient.Disconnect();

            await _disconnectionCompletionTask.Task;
        }
Example #2
0
 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);
 }
Example #4
0
 public void Dispose()
 {
     _twitchClient.Disconnect();
 }