Exemplo n.º 1
0
 public CachedCrudRepository(ICrudStore <TEntity, TKey> store,
                             ICacheService cacheService,
                             ICacheOptions options)
     : base(store, cacheService, options)
 {
     Store = store;
 }
Exemplo n.º 2
0
 public IdentityService(ICrudStore <UserKey, TUser> userStore,
                        IEnumerable <IUserValidator <TUser> > userValidators,
                        IAuthenticationService <ClaimsPrincipal> claimsAuthenticationService,
                        IUserClaimsConverter <TUser> claimsConverter, IUserHelper helper)
     : base(userStore, userValidators, claimsAuthenticationService, claimsConverter)
 {
     this.Helper = Guard.Null(nameof(helper), helper);
 }
Exemplo n.º 3
0
 protected IdentityServiceBase(ICrudStore <UserKey, TUser> userStore,
                               IEnumerable <IUserValidator <TUser> > userValidators,
                               IAuthenticationService <ClaimsPrincipal> claimsAuthenticationService,
                               IUserClaimsConverter <TUser> claimsConverter)
 {
     this._userStore      = Guard.Null(nameof(userStore), userStore);
     this._userValidators = Guard.Null(nameof(userValidators), userValidators);
     this._claimsAuthenticationService = Guard.Null(nameof(claimsAuthenticationService),
                                                    claimsAuthenticationService);
     this._claimsConverter = Guard.Null(nameof(claimsConverter), claimsConverter);
 }
Exemplo n.º 4
0
 public UserHelper(IRetrieveOperation <EmailAddress, TUser> userEmailStore,
                   ISingleUseTokenService singleUseTokenService,
                   ICrudStore <string, TimedLockout> timedLockoutStore, IPasswordHasher passwordHasher,
                   IEnumerable <IPasswordStrengthValidator> passwordStrengthValidators,
                   SystemClock clock)
     : base()
 {
     this._userEmailStore       = Guard.Null(nameof(userEmailStore), userEmailStore);
     this.SingleUseTokenService = Guard.Null(nameof(singleUseTokenService),
                                             singleUseTokenService);
     this.TimedLockoutStore          = Guard.Null(nameof(timedLockoutStore), timedLockoutStore);
     this.PasswordHasher             = Guard.Null(nameof(passwordHasher), passwordHasher);
     this.PasswordStrengthValidators = Guard.Null(nameof(passwordStrengthValidators),
                                                  passwordStrengthValidators);
     this.Clock = Guard.Null(nameof(clock), clock);
 }
Exemplo n.º 5
0
 protected CrudRepository(ICrudStore <TEntity, TKey> store)
     : base(store)
 {
     Store = store;
 }