public AuthorizationOperationHandler(Action <int> onAuthorizedArg, Action onNonAuthorized) { this.onAuthorizedArg = onAuthorizedArg; this.onNonAuthorized = onNonAuthorized; authorizationServiceApi = ServerComponents.GetComponent <IAuthorizationServiceAPI>().AssertNotNull(); }
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(); }