public SubscriptionsController(
     IHttpClientFactory httpClientFactory,
     IConfiguration configuration,
     LicenseDbContext licenseDbContext)
 {
     _configuration     = configuration;
     _httpClientFactory = httpClientFactory;
     _licenseDbContext  = licenseDbContext;
 }
 public WebHookController(
     IConfiguration configuration,
     IHttpClientFactory httpClientFactory,
     ILogger <WebHookController> logger,
     LicenseDbContext licenseDbContext)
 {
     _httpClientFactory = httpClientFactory;
     _configuration     = configuration;
     _licenseDbContext  = licenseDbContext;
     _logger            = logger;
 }
Esempio n. 3
0
 public LicenseController(
     ILicenseManager licenseManager,
     IHostEnvironment environment,
     IConfiguration configuration,
     ResponseDto response,
     LicenseDbContext context)
 {
     _licenseManager = licenseManager;
     _environment    = environment;
     _configuration  = configuration;
     _response       = response;
     _context        = context;
 }
Esempio n. 4
0
        public UserBackgroundService(
            ILogger <UserBackgroundService> logger,
            IServiceProvider services
            )
        {
            // Get service provider from created scope so that we can use services
            var provider = services.CreateScope().ServiceProvider;

            // System
            _timers = new List <KeyValuePair <string, Timer> >();
            _logger = logger;

            _context = provider.GetService <LicenseDbContext>();
        }
 public AccountController(
     ResponseDto response,
     IHttpContextAccessor accessor,
     IDataProtectionProvider protectionProvider,
     IConfiguration configuration,
     ITokenFactory tokenFactory,
     JwtConfigService jwtConfig,
     LicenseDbContext context)
 {
     _response      = response;
     _accessor      = accessor;
     _configuration = configuration;
     _tokenFactory  = tokenFactory;
     _jwtConfig     = jwtConfig;
     _context       = context;
     _dataProtector = protectionProvider.CreateProtector(configuration["dataProtectionProposeKey"]);
 }
Esempio n. 6
0
 public LicensesController(LicenseDbContext licenseDbContext)
 {
     _licenseDbContext = licenseDbContext;
 }
Esempio n. 7
0
 public LicenseManager(IConfiguration configuration, LicenseDbContext context, IHostEnvironment environment)
 {
     _configuration = configuration;
     _context       = context;
     _environment   = environment;
 }
Esempio n. 8
0
 public LicensesController(ILogger <LicensesController> logger, LicenseDbContext context)
 {
     _logger  = logger;
     _context = context;
 }
 public LicenseManagersController(LicenseDbContext licenseDbContext)
 {
     _licenseDbContext = licenseDbContext;
 }