/// <summary> /// /// </summary> /// <param name="parent"></param> /// <param name="configContext"></param> /// <param name="section"></param> /// <returns></returns> public object Create(object parent, object configContext, XmlNode section) { if (Instance != null) { return(Instance); } Instance = RpcConfigHelper.GetConfig(new XmlConfigurationSection(section)); return(Instance); }
/// <summary> /// initialize from configuration /// </summary> /// <param name="config"></param> public static void Initialize(CoreConfig.IConfiguration config) { var rpcConfig = RpcConfigHelper.GetConfig(new CoreConfigurationSection(config)); Initialize(rpcConfig); }