public CachedPayVolatilityClient(IHttpClientGenerator httpClientGenerator, IPayVolatilityServiceClientCacheSettings settings) { Volatility = new CachedVolatilityController(httpClientGenerator.Generate <IVolatilityController>(), settings); }
public CachedVolatilityController(IVolatilityController volatilityController, IPayVolatilityServiceClientCacheSettings settings) { _volatilityController = volatilityController; _settings = settings; _memoryCache = new OnDemandDataCache <IEnumerable <VolatilityModel> >(); }
public PayVolatilityClient(IHttpClientGenerator httpClientGenerator) { Volatility = httpClientGenerator.Generate <IVolatilityController>(); }