private AuthenticationResult(bool isAuthenticated, AuthenticationErrorType error, string username, string accessToken) { IsAuthenticated = isAuthenticated; Error = error; AccessToken = accessToken; Username = username; }
public static AuthenticationResult Failed(AuthenticationErrorType errorType) { return(new AuthenticationResult(false, errorType, null, null)); }