private void OnDisconnected(object sender, OnDisconnectedArgs e) { if (logType != DebugLogType.None) { Logger.LogMessage("Twitch chat disconnected"); } }
// Token: 0x06000016 RID: 22 RVA: 0x00002D10 File Offset: 0x00000F10 private void onLeaveChannel(object sender, OnDisconnectedArgs e, int position) { try { this.Log(e.BotUsername + " Disconnected"); this.Common.Dispatcher.Invoke(delegate() { (this.Common.Items[position] as ListBoxItem).Foreground = Brushes.White; }); this.status[position] = "Sleep"; this.connections--; this.statuslbl.Dispatcher.Invoke(delegate() { this.statuslbl.Content = "Status: " + this.connections; }); } catch (Exception ex) { try { this.Log(ex.Message); } catch { } } }
/// <summary> /// Called when the twitch client disconnects (callback) /// </summary> private async void OnDisconnect(object sender, OnDisconnectedArgs e) { logger.Error("disconnected from the twitch channel, trying to reconnect"); await Task.Delay(RECONNECT_INTERVAL); client.Connect(); }
private void OnDisconnected(object sender, OnDisconnectedArgs e) { StatusArgs status = new StatusArgs(); status.Status = StatusArgs.TwitchBotStatus.Disconnected; StatusEvent(this, status); }
private void TwitchClientOnOnDisconnected(object sender, OnDisconnectedArgs onDisconnectedArgs) { _twitchClient.OnDisconnected -= TwitchClientOnOnDisconnected; _isReady = false; _disconnectionCompletionTask.SetResult(true); _connectionCompletionTask = new TaskCompletionSource <bool>(); }
private void TwitchClientOnDisconnected(object sender, OnDisconnectedArgs e) { _twitchClient.OnDisconnected -= TwitchClientOnDisconnected; _isReady = false; _disconnectionCompletionTask.SetResult(true); _connectionCompletionTask = new TaskCompletionSource <bool>(); SendMessage("Liphe is leaving for now, chill out"); }
private void TwitchClientOnOnDisconnected(object sender, OnDisconnectedArgs onDisconnectedArgs) { _logger.LogInformation($"{nameof(TwitchChatClient)} disconnected"); _twitchClient.OnDisconnected -= TwitchClientOnOnDisconnected; _isReady = false; _disconnectionCompletionTask.SetResult(true); _connectionCompletionTask = new TaskCompletionSource <bool>(); }
private void Client_OnDisconnected(object sender, OnDisconnectedArgs e) { if (e.Username.ToString() == name) { this.Dispatcher.Invoke(() => Chat.Items.Insert(0, "Client is disconnected from mIRC Server")); this.Dispatcher.Invoke(() => stateUserControl(false)); this.Dispatcher.Invoke(() => controlListMemory()); } }
/// <summary> /// Invokes the disconnected. /// </summary> /// <param name="client">The client.</param> /// <param name="botUsername">The bot username.</param> public static void InvokeDisconnected(this TwitchClient client, string botUsername) { OnDisconnectedArgs model = new OnDisconnectedArgs() { BotUsername = botUsername }; client.RaiseEvent("OnDisconnected", model); }
/// <summary> /// [handler] ОТКЛЮЧЕНИЕ от сервера /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void onDisconnected(object sender, OnDisconnectedArgs e) { CheckForIllegalCrossThreadCalls = false; client.LeaveChannel(currChannel); client.OnDisconnected -= onDisconnected; client.OnMessageReceived -= globalMessageRecieved; printInfo("Disconnected!"); }
private void OnDisconnected(object sender, OnDisconnectedArgs e) { if (!userDisconnect) { LabelChange(@"Status: Reconnecting..."); twitchClient.Connect(); } else { LabelChange(@"Status: Disconnected"); } }
private void Cl_OnDisconnected(object sender, OnDisconnectedArgs e) { try { reconnectTryCt++; if (reconnectTryCt >= maxRetryCt) { doNotReconnect = true; } if (doNotReconnect) { this.logger.LogWarning("Chat Disconnected. Not attempting to reconnect.", true); } else { new Thread(() => { try { this.logger.LogWarning($"Chat Disconnected. Trying to reconnect (attempt {reconnectTryCt}) in 15 seconds... "); Thread.Sleep(15000); this.logger.LogWarning($"Attempt {reconnectTryCt} Connecting..."); connect(); } catch (Exception exc) { this.logger.LogError(ExceptionFormatter.FormatException(exc, $"Exception in {this.GetType().Name} - {System.Reflection.MethodBase.GetCurrentMethod().Name} (ReconnectThread Exception)")); } }).Start(); } } catch (Exception exc) { this.logger.LogError(ExceptionFormatter.FormatException(exc, $"Exception in {this.GetType().Name} - {System.Reflection.MethodBase.GetCurrentMethod().Name}")); } }
private void OnDisconnected(object sender, OnDisconnectedArgs e) => Disconnected();
private void Client_OnDisconnected(object sender, OnDisconnectedArgs e) { client.Reconnect(); timeAlive.Restart(); }
private void onDisconnected(object sender, OnDisconnectedArgs e) { Console.WriteLine("Disconected BotName: " + e.BotUsername + " " + DateTime.Now); }
private void Client_OnDisconnected(object sender, OnDisconnectedArgs e) { consoleMessage[5] = "Disconnected"; Program.SendToConsole(consoleMessage); }
private void ConnectButton_OnDisconnected(object sender, OnDisconnectedArgs e) { ChangeButtonLayout("Connect", Color.green, true); }
private void OnDisconnected(object sender, OnDisconnectedArgs e) { Debug.LogWarning("Disconnected"); }
public void OnDisconnected(object sender, OnDisconnectedArgs e) { //CheckForIllegalCrossThreadCalls = false; AddChat("<< Disconnected from channel >>"); SetStatus("Disconnected"); }
private void clientOnDisconnected(object sender, OnDisconnectedArgs e) { msgError("Disconnected from Twitch chat!"); Console.Title = "Exilios State: Disconnected"; }
private void Disconnected(object sender, OnDisconnectedArgs e) { Reboot(); }
private void Client_OnDisconnected(object sender, OnDisconnectedArgs e) { handler.OnDisconnect(this); }
private void ClientOnOnDisconnected(object sender, OnDisconnectedArgs e) { Debug.Log($"[Client] Disconnected, reconnecting"); _client.Reconnect(); }
private void DisconnectedHandler(object sender, OnDisconnectedArgs e) => Debug.Log($"Game disconnected.");
private void Client__OnDisconnected(object sender, OnDisconnectedArgs e) { client_.Connect(); }
private void OnDisconnect(object sender, OnDisconnectedArgs e) { PrintLog("Disconnected from #" + Properties.Settings.Default.channelname); }
private void Client_OnDisconnect(object sender, OnDisconnectedArgs e) { return; }
private void Client_OnDisconnect(object sender, OnDisconnectedArgs e) { System.Console.WriteLine($"+++++ Disconnected fron Channel +++++"); }
void Client_OnDisconnected(object sender, OnDisconnectedArgs e) { logger?.Log($"{e.BotUsername} disconnected in Twitch chat."); }
private void OnDisconnected(object sender, OnDisconnectedArgs e) { Debug.Log("<color=orange> Disconnected: " + e.BotUsername + "</color>"); }