Example #1
0
        public FundaSaleService(
            IOptions <FundaSettings> settings,
            IFundaClientFactory factory,
            IMapper mapper)
        {
            _settings = settings.Value;
            _mapper   = mapper;
            _factory  = factory;

            _cache = new CachingService(new MemoryCacheProvider(new MemoryCache(new MemoryCacheOptions())));
        }
Example #2
0
 public FundaClientFactory(IHttpClientFactory httpClientFactory, IOptions <FundaSettings> options)
 {
     _httpClientFactory = httpClientFactory;
     _settings          = options.Value;
 }