public WarningQuizService(RedisCache cache, IHostingEnvironment environment, CommonContext commonCtx, IOptions <AppSettings> appSettings, CitationService citationSvc) { _env = environment; _commonCtx = commonCtx; _appSettings = appSettings.Value; _citationSvc = citationSvc; }
public StripeService(CommonContext commonCtx, IOptions <AppSettings> stripeSettings, CitationService citationSvc, IHostingEnvironment env, IOptions <AppSettings> appSettings, IMapper mapper) { _commonCtx = commonCtx; _env = env; _appSettings = appSettings.Value; _mapper = mapper; _citationSvc = citationSvc; StripeConfiguration.SetApiKey(_appSettings.StripeSecretKey); }