コード例 #1
0
        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));
        }
コード例 #2
0
 public static ApiClientCoreWithCache Create(IApiClientCore apiClientCore, ApiRequestCacheHelper cacheHelper)
 {
     return(new ApiClientCoreWithCache(apiClientCore, cacheHelper));
 }
コード例 #3
0
 private ApiClientCoreWithCache(IApiClientCore apiClientCore
                                , ApiRequestCacheHelper cacheHelper)
 {
     this.apiClientCore = apiClientCore;
     this.cacheHelper   = cacheHelper;
 }