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

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