Class RuntimeSection
Represents the node runtime configuration section.
Namespace: Nevatech.Vsb.Repository.Configuration
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RuntimeSection : ConfigurationSection
  Constructors
RuntimeSection()
Declaration
public RuntimeSection()
  Fields
InstanceSynchronizationElementName
Name of the element representing InstanceSynchronization property in the configuration section.
Declaration
public const string InstanceSynchronizationElementName = "instanceSynchronization"
  Field Value
| Type | Description | 
|---|---|
| String | 
MonitoringElementName
Name of the element representing Monitoring property in the configuration section.
Declaration
public const string MonitoringElementName = "monitoring"
  Field Value
| Type | Description | 
|---|---|
| String | 
NodeElementName
Name of the element representing Node property in the configuration section.
Declaration
public const string NodeElementName = "node"
  Field Value
| Type | Description | 
|---|---|
| String | 
SectionName
Name of the section in configuration file.
Declaration
public const string SectionName = "nevatech.vsb.runtime"
  Field Value
| Type | Description | 
|---|---|
| String | 
Properties
Current
Gets currently loaded runtime configuration.
Declaration
public static RuntimeSection Current { get; }
  Property Value
| Type | Description | 
|---|---|
| RuntimeSection | 
InstanceSynchronization
Gets the configuration related to the node instances synchronization during configuration updates.
Declaration
public InstanceSynchronizationElement InstanceSynchronization { get; }
  Property Value
| Type | Description | 
|---|---|
| InstanceSynchronizationElement | 
Monitoring
Gets the node's monitoring configuration.
Declaration
public RuntimeMonitoringElement Monitoring { get; }
  Property Value
| Type | Description | 
|---|---|
| RuntimeMonitoringElement | 
Node
Gets the node's generic properties.
Declaration
public NodeElement Node { get; }
  Property Value
| Type | Description | 
|---|---|
| NodeElement | 
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
  Property Value
| Type | Description | 
|---|---|
| ConfigurationPropertyCollection | 
Methods
GetSection(Configuration)
Gets the routing configuration section from the specified configuration.
Declaration
public static RuntimeSection GetSection(Configuration config)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Configuration | config | The configuration to get the routing section from.  | 
      
Returns
| Type | Description | 
|---|---|
| RuntimeSection | The routing configuration section stored in provided configuration, or new empty instance of the section, if provided configuration does not contain it.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | Thrown if the specified config is a null reference.  |