コード例 #1
0
 public CloudFilesAssetWorker(int readTimeout, int writeTimeout)
 {
     CloudIdentity identity = new CloudIdentity { Username = Config.Settings.Instance.CFUsername, APIKey = Config.Settings.Instance.CFApiKey };
     IRestService restService = new CoreExt.ExtendedJsonRestServices(readTimeout, writeTimeout);
     _provider = new CoreExt.ExtendedCloudFilesProvider(identity, Config.Settings.Instance.CFDefaultRegion, null, restService);
     
     //warm up
     _provider.GetAccountHeaders(useInternalUrl: Config.Settings.Instance.CFUseInternalURL, region: Config.Settings.Instance.CFDefaultRegion);
 }
コード例 #2
0
        public CloudFilesAssetWorker(int readTimeout, int writeTimeout)
        {
            CloudIdentity identity = new CloudIdentity {
                Username = Config.Settings.Instance.CFUsername, APIKey = Config.Settings.Instance.CFApiKey
            };
            IRestService restService = new CoreExt.ExtendedJsonRestServices(readTimeout, writeTimeout);

            _provider = new CoreExt.ExtendedCloudFilesProvider(identity, Config.Settings.Instance.CFDefaultRegion, null, restService);

            //warm up
            _provider.GetAccountHeaders(useInternalUrl: Config.Settings.Instance.CFUseInternalURL, region: Config.Settings.Instance.CFDefaultRegion);
        }