private void OnDisconnected(SteamKit2.SteamClient.DisconnectedCallback obj) { botManager.UpdateBotState(EBotState.Free); logger.Info("Disconnected from SteamClient."); ResetParameters(); }
void OnDisconnected(SteamKit2.SteamClient.DisconnectedCallback callback) { if (callback.UserInitiated) { Console.WriteLine("Disconnect successful. I'll be napping over here until you reconnect.", Console.ForegroundColor = ConsoleColor.Green); steamIsRunning = false; return; } Console.WriteLine("Disconnected, reconnect in 5 sec.", Console.ForegroundColor = ConsoleColor.Green); Thread.Sleep(5000); steamClient.Connect(); }
private void OnDisconnected(SteamKit2.SteamClient.DisconnectedCallback callback) { if (_quitAfterDisconnect) { ConsoleSystem.Log("Disconnected from Steam, quiting..."); Framework.Quit(); } else { ConsoleSystem.Log("Disconnected from Steam!"); } }
private void OnDisconnected(SteamKit.SteamClient.DisconnectedCallback callback) { _clientReadyEvent.Reset(); if (_cancellationTokenSource.IsCancellationRequested || callback.UserInitiated) { return; } Task.Run(async() => { await Task.Delay(TimeSpan.FromMilliseconds(100)); InternalClient.Connect(); }); }
private void onDisconnected(SteamKit2.SteamClient.DisconnectedCallback callback) { onDisconnectedEvent.Set(); }
void OnDisconnected(SK.SteamClient.DisconnectedCallback callback) { IsConnected = false; Disconnected?.Invoke(this, null); }
private void onDisconnected(SteamKit2.SteamClient.DisconnectedCallback callback) { isRunning = false; onDisconnectedEvent.Set(); }