Class RuntimeSection
Represents the node runtime configuration section.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Configuration
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RuntimeSection : ConfigurationSection
Constructors
RuntimeSection()
Declaration
public RuntimeSection()
Fields
CachingElementName
Name of the element representing Caching property in the configuration section.
Declaration
public const string CachingElementName = "caching"
Field Value
| Type | Description |
|---|---|
| string |
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 |
OAuthMetadataElementName
Name of the element representing OAuthMetadata property in the configuration section.
Declaration
public const string OAuthMetadataElementName = "oauthMetadata"
Field Value
| Type | Description |
|---|---|
| string |
ProtectionCertificateElementName
Name of the element representing the protected value decryption certificate in the configuration element.
Declaration
public const string ProtectionCertificateElementName = "protectionCertificate"
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
Caching
Gets the node's caching configuration.
Declaration
[ConfigurationProperty("caching")]
public CachingElement Caching { get; }
Property Value
| Type | Description |
|---|---|
| CachingElement |
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
[ConfigurationProperty("instanceSynchronization")]
public InstanceSynchronizationElement InstanceSynchronization { get; }
Property Value
| Type | Description |
|---|---|
| InstanceSynchronizationElement |
Monitoring
Gets the node's monitoring configuration.
Declaration
[ConfigurationProperty("monitoring")]
public RuntimeMonitoringElement Monitoring { get; }
Property Value
| Type | Description |
|---|---|
| RuntimeMonitoringElement |
Node
Gets the node's generic properties.
Declaration
[ConfigurationProperty("node", IsRequired = true)]
public NodeElement Node { get; }
Property Value
| Type | Description |
|---|---|
| NodeElement |
OAuthMetadata
Gets the configuration related to OAuth2/OIDC metadata retrieval and caching.
Declaration
[ConfigurationProperty("oauthMetadata")]
public OAuthMetadataElement OAuthMetadata { get; }
Property Value
| Type | Description |
|---|---|
| OAuthMetadataElement |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
| Type | Description |
|---|---|
| ConfigurationPropertyCollection |
Overrides
ProtectionCertificate
Gets or sets configuration element containing location of the X.509 certificate used to decrypt the protected message processing context properties. If not specified then the hard-coded symmetrical key is used instead.
Declaration
[ConfigurationProperty("protectionCertificate")]
public X509DefaultServiceCertificateElement ProtectionCertificate { get; }
Property Value
| Type | Description |
|---|---|
| X509DefaultServiceCertificateElement |
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. |