Class AgentSection
Represents the task scheduling engine configuration section.
Inheritance
System.Object
AgentSection
Namespace: Nevatech.Vsb.Agent.Configuration
Assembly: Nevatech.Vsb.Agent.dll
Syntax
public sealed class AgentSection : ConfigurationSection
Constructors
AgentSection()
Declaration
public AgentSection()
Fields
CertificateAuthorityElementName
Name of the element representing X.509 certificate authority property in the configuration element.
Declaration
public const string CertificateAuthorityElementName = "certificateAuthority"
Field Value
Type | Description |
---|---|
System.String |
SectionName
Name of the section in configuration file.
Declaration
public const string SectionName = "nevatech.vsb.agent"
Field Value
Type | Description |
---|---|
System.String |
Properties
CertificateAuthority
Gets element containing configuration of the X.509 Certificate Authority.
Declaration
public CertificateAuthorityElement CertificateAuthority { get; }
Property Value
Type | Description |
---|---|
CertificateAuthorityElement |
Current
Gets currently loaded repository configuration.
Declaration
public static AgentSection Current { get; }
Property Value
Type | Description |
---|---|
AgentSection |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
System.Configuration.ConfigurationPropertyCollection |
Tasks
Gets the collection of TaskElement elements configured in this section.
Declaration
public TaskElementCollection Tasks { get; }
Property Value
Type | Description |
---|---|
TaskElementCollection |
Methods
GetSection(Configuration)
Gets the repository configuration section from the specified configuration.
Declaration
public static AgentSection GetSection(Configuration config)
Parameters
Type | Name | Description |
---|---|---|
System.Configuration.Configuration | config | The configuration to get the routing section from. |
Returns
Type | Description |
---|---|
AgentSection | The repository configuration section stored in provided configuration, or new empty instance of the section, if provided configuration does not contain it. |