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(); }
public void AddParts(IEnumerable <IAuthenticationProvider> authenticationProviders) { _authenticationProviders = authenticationProviders.ToArray(); _defaultAuthenticationProvider = _authenticationProviders.OfType <DefaultAuthenticationProvider>().First(); }