コード例 #1
0
 public OneStopUtils(IConfiguration Configuration, ILogger logger)
 {
     this.Configuration = Configuration;
     _dynamics          = DynamicsSetupUtil.SetupDynamics(Configuration);
     _onestopRestClient = OneStopUtils.SetupOneStopClient(Configuration, logger);
     _logger            = logger;
 }
コード例 #2
0
        public OneStopUtils(IConfiguration configuration, IMemoryCache cache)
        {
            this._configuration = configuration;
            _cache = cache;


            _onestopRestClient = OneStopUtils.SetupOneStopClient(configuration, Log.Logger);
        }
コード例 #3
0
        public OneStopUtils(IConfiguration Configuration, IMemoryCache cache)
        {
            this.Configuration = Configuration;
            _cache             = cache;
            _dynamics          = DynamicsSetupUtil.SetupDynamics(Configuration);

            _onestopRestClient = OneStopUtils.SetupOneStopClient(Configuration, Log.Logger);
        }
コード例 #4
0
        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;
            }
        }