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> >();
 }
예제 #3
0
 public PayVolatilityClient(IHttpClientGenerator httpClientGenerator)
 {
     Volatility = httpClientGenerator.Generate <IVolatilityController>();
 }