Beispiel #1
0
        public void AddParts(IEnumerable <IAuthenticationProvider> authenticationProviders, IEnumerable <IPasswordResetProvider> passwordResetProviders)
        {
            _authenticationProviders = authenticationProviders.ToArray();

            _defaultAuthenticationProvider = _authenticationProviders.OfType <DefaultAuthenticationProvider>().First();

            _passwordResetProviders = passwordResetProviders.ToArray();

            _defaultPasswordResetProvider = passwordResetProviders.OfType <DefaultPasswordResetProvider>().First();
        }
Beispiel #2
0
        public void AddParts(IEnumerable <IAuthenticationProvider> authenticationProviders)
        {
            _authenticationProviders = authenticationProviders.ToArray();

            _defaultAuthenticationProvider = _authenticationProviders.OfType <DefaultAuthenticationProvider>().First();
        }