Class RepositorySection
Represents Repository application configuration section.
Inheritance
Namespace: Nevatech.Vsb.Repository.Configuration
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RepositorySection : ConfigurationSection
Constructors
RepositorySection()
Declaration
public RepositorySection()
Fields
DocumentationUrlAttributeName
Name of the attribute representing Documentation / Help page base URL property in the configuration element.
Declaration
public const string DocumentationUrlAttributeName = "documentationUrl"
Field Value
Type | Description |
---|---|
System.String |
MetadataElementName
Name of the element representing metadata property of the configuration section.
Declaration
public const string MetadataElementName = "metadata"
Field Value
Type | Description |
---|---|
System.String |
MonitoringElementName
Name of the element representing Monitoring property in the configuration section.
Declaration
public const string MonitoringElementName = "monitoring"
Field Value
Type | Description |
---|---|
System.String |
ReportingElementName
Name of the element representing reporting property of the configuration section.
Declaration
public const string ReportingElementName = "reporting"
Field Value
Type | Description |
---|---|
System.String |
SectionName
Name of the section in configuration file.
Declaration
public const string SectionName = "nevatech.vsb.repository"
Field Value
Type | Description |
---|---|
System.String |
SecurityElementName
Name of the element representing security property of the configuration section.
Declaration
public const string SecurityElementName = "security"
Field Value
Type | Description |
---|---|
System.String |
Properties
Current
Gets currently loaded repository configuration.
Declaration
public static RepositorySection Current { get; }
Property Value
Type | Description |
---|---|
RepositorySection |
DocumentationUrl
Gets or sets the product documentation base URL. If not set then publicly hosted documentation is used.
Declaration
public Uri DocumentationUrl { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
Metadata
Gets configuration element containing configuration related to service metadata generation process.
Declaration
public MetadataElement Metadata { get; }
Property Value
Type | Description |
---|---|
MetadataElement |
Monitoring
Gets the repository's monitoring configuration.
Declaration
public RepositoryMonitoringElement Monitoring { get; }
Property Value
Type | Description |
---|---|
RepositoryMonitoringElement |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
System.Configuration.ConfigurationPropertyCollection |
Reporting
Gets configuration element containing configuration for the service activity reporting subsystem.
Declaration
public ReportingElement Reporting { get; }
Property Value
Type | Description |
---|---|
ReportingElement |
Security
Gets configuration element containing security related configuration.
Declaration
public SecurityElement Security { get; }
Property Value
Type | Description |
---|---|
SecurityElement |
Methods
GetSection(Configuration)
Gets the repository configuration section from the specified configuration.
Declaration
public static RepositorySection GetSection(Configuration config)
Parameters
Type | Name | Description |
---|---|---|
System.Configuration.Configuration | config | The configuration to get the routing section from. |
Returns
Type | Description |
---|---|
RepositorySection | The repository configuration section stored in provided configuration, or new empty instance of the section, if provided configuration does not contain it. |