コード例 #1
0
 public CampaignDbService(AdvertDbContext advertDbContext, IJwtTokenService jwtTokenService,
                          IBannerAreaCalculatorService bannerAreaCalculatorService, IMapper mapper)
 {
     _advertDbContext             = advertDbContext;
     _jwtTokenService             = jwtTokenService;
     _bannerAreaCalculatorService = bannerAreaCalculatorService;
     _mapper = mapper;
 }
コード例 #2
0
 public JwtTokenService(IConfiguration configuration, AdvertDbContext advertDbContext,
                        IHttpContextAccessor httpContextAccessor, IPasswordService passwordService)
 {
     Configuration        = configuration;
     _advertDbContext     = advertDbContext;
     _httpContextAccessor = httpContextAccessor;
     _passwordService     = passwordService;
 }
コード例 #3
0
ファイル: ClientDbService.cs プロジェクト: s17804/advert_api
 public ClientDbService(AdvertDbContext advertDbContext, IMapper mapper, IPasswordService passwordService)
 {
     _advertDbContext = advertDbContext;
     _mapper          = mapper;
     _passwordService = passwordService;
 }
コード例 #4
0
 public EntityRepository(AdvertDbContext dbContext)
 {
     this.DbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     this.Entities  = dbContext.Set <T>();
 }
コード例 #5
0
 public AdvertDbService(AdvertDbContext context, IConfiguration configuration)
 {
     _context      = context;
     Configuration = configuration;
 }