示例#1
0
        void IConfigurationSettingHostService.Attach(IConfigurationSettingItem setting)
        {
            this.setting = (SubscribeConfigurationSetting)setting;
            var profile = DefaultProfile.GetProfile(this.setting.RegionId, this.setting.AccessId, this.setting.AccessSecret);

            client = new DefaultAcsClient(profile);
        }
示例#2
0
        public override IConfigurationSettingItem Parse(XmlNode section)
        {
            var setting = new SubscribeConfigurationSetting();

            Parse(setting, section);

            return(setting);
        }
示例#3
0
        public override IConfigurationSettingItem Parse(IConfiguration configuration)
        {
            var setting = new SubscribeConfigurationSetting();

            Parse(setting, configuration);

            var configNode = configuration.GetSection("config");

            if (configNode.Exists())
            {
                setting.InstanceId = configNode["instanceId"];
            }

            return(setting);
        }