示例#1
0
        public HomeController()
        {
            var config = new CloudConfig
            {
                StorageServiceAccountName = ConfigurationSettings.AppSettings["StorageServiceAccountName"],
                StorageServiceAccessKey = ConfigurationSettings.AppSettings["StorageServiceAccessKey"],
                CdnEndpointName = ConfigurationSettings.AppSettings["CdnEndpointName"]
            };

            if (config.IsEmpty)
            {
                _cloud = new Cloud(@"d:\config.json");
            }
            else
            {
                _cloud = new Cloud(config);
            }
        }
示例#2
0
 public Cloud(CloudConfig config)
 {
     _config = config;
 }
示例#3
0
文件: Cloud.cs 项目: kpi-ua/MediaHack
 public Cloud(CloudConfig config)
 {
     _config = config;
 }
示例#4
0
        public Cloud(string configurationPath)
        {
            var json = File.ReadAllText(configurationPath);

            _config = JsonConvert.DeserializeObject <CloudConfig>(json);
        }
示例#5
0
文件: Cloud.cs 项目: kpi-ua/MediaHack
 public Cloud(string configurationPath)
 {
     var json = File.ReadAllText(configurationPath);
     _config = JsonConvert.DeserializeObject<CloudConfig>(json);
 }