コード例 #1
0
 public RoleIdentityRepository(IConfiguration configuration, RoleManager <Rol> managerR,
                               UserManager <Usuario> managerU, ContextoAuthDB dbContext)
 {
     this.userManager = managerU;
     this.roleManager = managerR;
     this.dbManager   = dbContext;
     this.IdApp       = configuration["IdentifierAPP:Id"];
 }
コード例 #2
0
 public RepositorySessionesQueries(ContextoAuthDB Context,
                                   SignInManager <Usuario> signInManager,
                                   UserManager <Usuario> userManager)
 {
     this.signInManager = signInManager;
     this.userManager   = userManager;
     this.DBContext     = Context;
 }
コード例 #3
0
 public UserIdentityRepository(IConfiguration configuration,
                               UserManager <Usuario> userManager,
                               RoleManager <Rol> roleManager,
                               ContextoAuthDB dbContext)
 {
     this.userManager = userManager;
     this.roleManager = new RoleIdentityRepository(configuration, roleManager, userManager, dbContext);
     this.dbManager   = dbContext;
     this.IdApp       = configuration["IdentifierAPP:Id"];
 }
コード例 #4
0
        public UnitOfWork(ContextoAuthDB contexto,
                          IRepositorySessionesCmd repoSession,
                          IRepositorySessionesQueries repoSessionQueries,
                          IConfiguration configuration,
                          RoleManager <Rol> managerR,
                          UserManager <Usuario> managerU)
        {
            this._contexto           = contexto;
            this._repoSessionCmd     = repoSession;
            this._repoSessionQueries = repoSessionQueries;

            this.configuration = configuration;
            this.roleManager   = managerR;
            this.userManager   = managerU;
        }
コード例 #5
0
 public RepositoryBaseCommand(ContextoAuthDB context)
 {
     _context = context;
 }
コード例 #6
0
 public RepositoryBaseQuery(ContextoAuthDB context)
 {
     _context = context;
 }