コード例 #1
0
 public TravelCompanyService(
     TWishListDbContext context,
     ICompanyRequestService companyRequestService,
     UserManager <ApplicationUser> userManager)
 {
     this.context = context;
     this.companyRequestService = companyRequestService;
     this.userManager           = userManager;
 }
コード例 #2
0
        public async Task InvokeAsync(
            HttpContext httpContext,
            UserManager <ApplicationUser> userManager,
            RoleManager <ApplicationRole> roleManager,
            TWishListDbContext dbContext)
        {
            SeedRoles(roleManager).GetAwaiter().GetResult();

            SeedUserInRoles(userManager).GetAwaiter().GetResult();

            await this.next(httpContext);
        }
コード例 #3
0
 public CompanyRequestService(TWishListDbContext context, IUserService userService)
 {
     this.context     = context;
     this.userService = userService;
 }
コード例 #4
0
 public UserService(TWishListDbContext context, UserManager <ApplicationUser> userManager)
 {
     this.context     = context;
     this.userManager = userManager;
 }