Esempio n. 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();
        }
Esempio n. 2
0
        public void AddParts(IEnumerable <IAuthenticationProvider> authenticationProviders)
        {
            _authenticationProviders = authenticationProviders.ToArray();

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