Пример #1
0
        private void OnLoggedOn(SteamUser.LoggedOnCallback obj)
        {
            if (obj.Result != EResult.OK)
            {
                Console.WriteLine("[Steam] Login denied, reason: {0}", obj.Result);
                Client.Disconnect();
                return;
            }

            Connected = true;
            Console.WriteLine("[Steam] We are connected! (user={0})", _config["steam_user"]);
        }
Пример #2
0
        private void OnLoggedOn(SteamUser.LoggedOnCallback obj)
        {
            if (obj.Result != EResult.OK)
            {
                _logger.LogError("Login denied, reason: {0}", obj.Result);
                Client.Disconnect();
                return;
            }

            Connected = true;
            _logger.LogInformation("We are connected! (user={0})", _config["steam_user"]);
        }