Esempio n. 1
0
 /// <summary>
 /// Construct a new instance of <see cref="UserManager{TUser,TRole}"/>.
 /// </summary>
 public UserManager(
     IUserStore <TUser> store,
     IRoleStore <TRole> roleStore,
     IOptions <IdentityOptions> optionsAccessor,
     IPasswordHasher <TUser> passwordHasher,
     IEnumerable <IUserValidator <TUser> > userValidators,
     IEnumerable <IPasswordValidator <TUser> > passwordValidators,
     ILookupNormalizer keyNormalizer,
     IdentityErrorDescriber errors,
     IServiceProvider services,
     ILogger <UserManager <TUser> > logger,
     ISignInSlideExpiration signInSlideExpiration,
     IOptions <IdentityAdvancedOptions> options2Accessor)
     : base(store,
            optionsAccessor,
            passwordHasher,
            userValidators,
            passwordValidators,
            keyNormalizer,
            errors,
            services,
            logger)
 {
     RoleStore       = roleStore;
     Features        = options2Accessor.Value;
     SlideExpiration = signInSlideExpiration;
 }
 public CookieAuthenticationValidator(ISignInSlideExpiration cache)
 {
     _cache = cache;
 }
Esempio n. 3
0
 public BasicAuthenticationValidator(ISignInSlideExpiration cache)
 {
     _cache = cache;
 }