public IConfigurationSettingItem Parse(IConfiguration configuration) { var setting = new RouteInstanceSetting(); var type = Type.GetType(configuration.GetSection("type").Value, false, true); if (type != null) { setting.RouteService = type.New <IInstanceRouteService>(); } return(setting); }
public IConfigurationSettingItem Parse(XmlNode node) { var setting = new RouteInstanceSetting(); var type = Type.GetType(node.GetAttributeValue("type"), false, true); if (type != null) { setting.RouteService = type.New <IInstanceRouteService>(); } return(setting); }