Class Metabank.Section
Base class for metadata section stored in metabank catalogs. Section represents a piece of metabase catalog that can lazily load from the source file system. Contrary to monolithic application configurations, that load at once from a single source (i.e. disk file), metadata class allows to wrap configuration and load segments of configuration on a as-needed basis
Inheritance
System.Object
Metabank.Section
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Sky.Metabase
Assembly: Azos.Sky.dll
Syntax
public abstract class Section : INamed
Constructors
Section(Metabank.Catalog, String, String, FileSystemSession)
Declaration
protected Section(Metabank.Catalog catalog, string name, string path, FileSystemSession session)
Parameters
Type | Name | Description |
---|---|---|
Metabank.Catalog | catalog | |
System.String | name | |
System.String | path | |
FileSystemSession | session |
Fields
Catalog
Declaration
public readonly Metabank.Catalog Catalog
Field Value
Type | Description |
---|---|
Metabank.Catalog |
m_Name
Declaration
protected readonly string m_Name
Field Value
Type | Description |
---|---|
System.String |
Metabank
Declaration
public readonly Metabank Metabank
Field Value
Type | Description |
---|---|
Metabank |
Path
File system path to this section with section name
Declaration
public readonly string Path
Field Value
Type | Description |
---|---|
System.String |
Properties
Description
Section description
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
LevelConfig
Returns metabase config for this section/level
Declaration
public IConfigSectionNode LevelConfig { get; }
Property Value
Type | Description |
---|---|
IConfigSectionNode |
Name
Section name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
RootNodeName
Returns the name of root node in section level file
Declaration
public abstract string RootNodeName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Validate(Metabank.ValidationContext)
Validates metabase section by checking all of it contents for consistency
Declaration
public abstract void Validate(Metabank.ValidationContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Metabank.ValidationContext | ctx |