Пример #1
0
        AuthenticatedLevel Authenticate(ushort pin, out string user)
        {
            AuthorizationLevel authorizationLevel = pinAuthProvider.AuthorizePin(pin, out user);
            AuthenticatedLevel authenticatedLevel = AuthenticatedLevel.None;

            switch (authorizationLevel)
            {
            case AuthorizationLevel.Level1:
                authenticatedLevel = AuthenticatedLevel.Level1;
                break;

            case AuthorizationLevel.Level2:
                authenticatedLevel = AuthenticatedLevel.Level2;
                break;
            }
            return(authenticatedLevel);
        }
Пример #2
0
 public AuthenticatedEventArgs(AuthenticatedLevel level, string user)
 {
     Level = level;
     User  = user;
 }