AK.F1.Timing.Utility.Recorder.Program.TryAuthenticate C# (CSharp) Method

TryAuthenticate() private method

private TryAuthenticate ( string username, string password, AuthenticationToken &token ) : bool
username string
password string
token AuthenticationToken
return bool
        private bool TryAuthenticate(string username, string password, out AuthenticationToken token)
        {
            Log.Info("authenticating...");
            try
            {
                token = F1Timing.Live.Login(username, password);
                Log.InfoFormat("authenticated: {0}", username);
                return true;
            }
            catch(Exception exc)
            {
                Log.Error(exc);
                token = null;
                return false;
            }
        }