Class ConfigStringBuilder
Facilitates the creation/building of strings from existing strings or configuration vectors. This is used for example to build DB connect strings from host names that need to be resolved via an external system
Inheritance
Inherited Members
Namespace: Azos.Conf
Assembly: Azos.dll
Syntax
public static class ConfigStringBuilder
Methods
Build(IConfigNode)
Builds the string based on the configured state supplied as a config vector, or passes the supplied string through if it is not a loaconic vector with CONFIG_BUILDER_ROOT
Declaration
public static string Build(IConfigNode source)
Parameters
Type | Name | Description |
---|---|---|
IConfigNode | source | The original source which may be IConfigStringBuilder injector or attribute value |
Returns
Type | Description |
---|---|
System.String | The original attribute string value or the string returnd by IConfigStringBuilder.BuildString() method if IConfigStringBuilder was specified |
Build(IConfigSectionNode, String)
Builds the string based on the configured state supplied as a config vector, or passes the supplied string through if it is not a laconic vector with CONFIG_BUILDER_ROOT
Declaration
public static string Build(IConfigSectionNode level, string sectionOrAttributeName)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | level | The configuration section level |
System.String | sectionOrAttributeName | The name of section or attribute at the specified level |
Returns
Type | Description |
---|---|
System.String | The original attribute string value or the string returned by IConfigStringBuilder.BuildString() method if IConfigStringBuilder was specified |