Class Metabank.SectionRegionBase
Base class for all sections that are in region catalog
Inheritance
Implements
Inherited Members
Namespace: Azos.Sky.Metabase
Assembly: Azos.Sky.dll
Syntax
public abstract class SectionRegionBase : Metabank.SectionWithNamedAppConfigs<Metabank.RegCatalog>, INamed
Fields
GeoCenter
Returns geo center coordinates for this level or null. Use EffectiveGeoCenter to get coordinates defaulted from parent if not set on this level
Declaration
public readonly LatLng? GeoCenter
Field Value
Type | Description |
---|---|
System.Nullable<LatLng> |
ParentSection
A section which is a parent of this one
Declaration
public readonly Metabank.SectionRegionBase ParentSection
Field Value
Type | Description |
---|---|
Metabank.SectionRegionBase |
Properties
EffectiveGeoCenter
Returns the effective geo center of this entity, that is - if the coordinates are not specified on this level then coordinates of parent are taken
Declaration
public LatLng EffectiveGeoCenter { get; }
Property Value
Type | Description |
---|---|
LatLng |
Item[String]
Navigates to a named child section
Declaration
public abstract Metabank.SectionRegionBase this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
Metabank.SectionRegionBase |
ParentSectionsOnPath
Enumerates parent sections on the path to this section in the order of their descent - from root down into the region tree
Declaration
public IEnumerable<Metabank.SectionRegionBase> ParentSectionsOnPath { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Metabank.SectionRegionBase> |
RegionPath
Returns region path
Declaration
public virtual string RegionPath { get; }
Property Value
Type | Description |
---|---|
System.String |
SectionMnemonicType
Provides short mnemonic description of this section type (i.e. "reg", "noc", "zone", "host")
Declaration
public string SectionMnemonicType { get; }
Property Value
Type | Description |
---|---|
System.String |
SectionsOnPath
Enumerates parent sections on the path to this section in the order of their descent - from root down into the region tree including this section. See also ParentSectionsOnPath which only returns parent sections without this one
Declaration
public IEnumerable<Metabank.SectionRegionBase> SectionsOnPath { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Metabank.SectionRegionBase> |
Methods
IsLogicallyTheSame(Metabank.SectionRegionBase)
Returns true if another instance represents logically the same regional entity: has the same type and path, regardless of path extensions ('.r','.noc',...). Use this as a test as Equals() is not overriden by this class and does instance-based comparison by default
Declaration
public bool IsLogicallyTheSame(Metabank.SectionRegionBase other)
Parameters
Type | Name | Description |
---|---|---|
Metabank.SectionRegionBase | other |
Returns
Type | Description |
---|---|
System.Boolean |
MatchNetworkRoute(String, String, String, String)
Matches the requested parameters to the most appropriate network route specified in the 'networks' level config subsection
Declaration
public Metabank.NetSvcPeer MatchNetworkRoute(string net, string svc, string binding, string from)
Parameters
Type | Name | Description |
---|---|---|
System.String | net | Network |
System.String | svc | Service |
System.String | binding | Binding name |
System.String | from | Calling party - region path to host i.e. '/US/East/CLE/A/I/wmed0001' |
Returns
Type | Description |
---|---|
Metabank.NetSvcPeer | Best matched NetSvcPeer descriptor which may be blank. Check NetSvcPeer.Blank |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Validate(Metabank.ValidationContext)
Declaration
public override void Validate(Metabank.ValidationContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Metabank.ValidationContext | ctx |