示例#1
0
        public MainForm()
        {
            InitializeComponent();
            var configPath = @"d:\config.json";

            _cloud = new Cloud(configPath);
        }
示例#2
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);
            }
        }