Beispiel #1
0
        public AuthorizationOperationHandler(Action <int> onAuthorizedArg, Action onNonAuthorized)
        {
            this.onAuthorizedArg = onAuthorizedArg;
            this.onNonAuthorized = onNonAuthorized;

            authorizationServiceApi = ServerComponents.GetComponent <IAuthorizationServiceAPI>().AssertNotNull();
        }
Beispiel #2
0
        public AuthenticationOperationHandler(Action <int> onAuthenticated)
        {
            this.onAuthenticated = onAuthenticated;

            databaseUserVerifier         = ServerComponents.GetComponent <IDatabaseUserVerifier>().AssertNotNull();
            databaseUserPasswordVerifier = ServerComponents.GetComponent <IDatabaseUserPasswordVerifier>().AssertNotNull();
            databaseUserIdProvider       = ServerComponents.GetComponent <IDatabaseUserIdProvider>().AssertNotNull();
            authorizationServiceApi      = ServerComponents.GetComponent <IAuthorizationServiceAPI>().AssertNotNull();
        }