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); }
public override IConfigurationSettingItem Parse(XmlNode section) { var setting = new SubscribeConfigurationSetting(); Parse(setting, section); return(setting); }
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); }