Пример #1
0
 public APIProcessor(string apiKey, string secretKey, IAPICacheManager apiCache)
 {
     _apiKey    = apiKey;
     _secretKey = secretKey;
     if (apiCache != null)
     {
         _apiCache     = apiCache;
         _cacheEnabled = true;
     }
     _logger = LogManager.GetLogger(typeof(APIProcessor));
     _logger.Debug($"API Processor set up. Cache Enabled={_cacheEnabled}");
 }
Пример #2
0
        public APIProcessor(string apiKey, string secretKey, IAPICacheManager apiCache, RequestClient requestClient)
        {
            _apiKey    = apiKey;
            _secretKey = secretKey;
            if (apiCache != null)
            {
                _apiCache     = apiCache;
                _cacheEnabled = true;
            }

            _requestClient = requestClient;
            _logger        = NLog.LogManager.GetLogger("APIProcessor");
            _logger.Debug($"API Processor set up. Cache Enabled={_cacheEnabled}");
        }