public static ApiClientCoreWithCache Create(string apiKey, string baseUrl, MemoryCache cache) { var baseUri = new Uri(baseUrl); var apiClientCore = new ApiClientCore(apiKey, baseUri); var cacheHelper = new ApiRequestCacheHelper(cache, baseUri); return(new ApiClientCoreWithCache(apiClientCore, cacheHelper)); }
public static ApiClientCoreWithCache Create(IApiClientCore apiClientCore, ApiRequestCacheHelper cacheHelper) { return(new ApiClientCoreWithCache(apiClientCore, cacheHelper)); }
private ApiClientCoreWithCache(IApiClientCore apiClientCore , ApiRequestCacheHelper cacheHelper) { this.apiClientCore = apiClientCore; this.cacheHelper = cacheHelper; }