Ejemplo n.º 1
0
 public UserManager(IHandler handler)
 {
     this.handler = handler;
     this.permissionRepository     = handler.Storage.GetRepository <IPermissionRepository>();
     this.roleRepository           = handler.Storage.GetRepository <IRoleRepository>();
     this.rolePermissionRepository = handler.Storage.GetRepository <IRolePermissionRepository>();
     this.userRepository           = handler.Storage.GetRepository <IUserRepository>();
     this.userRoleRepository       = handler.Storage.GetRepository <IUserRoleRepository>();
     this.credentialTypeRepository = handler.Storage.GetRepository <ICredentialTypeRepository>();
     this.credentialRepository     = handler.Storage.GetRepository <ICredentialRepository>();
 }
Ejemplo n.º 2
0
 public DefaultUserManager(IHttpContextAccessor httpContextAccessor, IStorage storage)
 {
     this.httpContextAccessor      = httpContextAccessor;
     this.storage                  = storage;
     this.permissionRepository     = this.storage.GetRepository <IPermissionRepository>();
     this.roleRepository           = this.storage.GetRepository <IRoleRepository>();
     this.rolePermissionRepository = this.storage.GetRepository <IRolePermissionRepository>();
     this.userRepository           = this.storage.GetRepository <IUserRepository>();
     this.userRoleRepository       = this.storage.GetRepository <IUserRoleRepository>();
     this.credentialTypeRepository = this.storage.GetRepository <ICredentialTypeRepository>();
     this.credentialRepository     = this.storage.GetRepository <ICredentialRepository>();
 }
Ejemplo n.º 3
0
 public CredentialTypeCommandHandler(ICredentialTypeRepository types)
 {
     _types = types;
 }