public OneStopUtils(IConfiguration Configuration, ILogger logger) { this.Configuration = Configuration; _dynamics = DynamicsSetupUtil.SetupDynamics(Configuration); _onestopRestClient = OneStopUtils.SetupOneStopClient(Configuration, logger); _logger = logger; }
public OneStopUtils(IConfiguration configuration, IMemoryCache cache) { this._configuration = configuration; _cache = cache; _onestopRestClient = OneStopUtils.SetupOneStopClient(configuration, Log.Logger); }
public OneStopUtils(IConfiguration Configuration, IMemoryCache cache) { this.Configuration = Configuration; _cache = cache; _dynamics = DynamicsSetupUtil.SetupDynamics(Configuration); _onestopRestClient = OneStopUtils.SetupOneStopClient(Configuration, Log.Logger); }
public OneStopUtils(IConfiguration configuration, IMemoryCache cache) { _configuration = configuration; _cache = cache; _onestopRestClient = SetupOneStopClient(configuration, Log.Logger); if (!string.IsNullOrEmpty(_configuration["maxLicencesPerInterval"])) { if (!int.TryParse(_configuration["maxLicencesPerInterval"], out maxLicencesPerInterval)) { maxLicencesPerInterval = 10; } } else { maxLicencesPerInterval = 10; } }