Class DiscoveryConfig
Discovery configuration
Inherited Members
ValidatableRecordBase.ObjectValidatable(IObjectValidatable)
ValidatableRecordBase.ToString()
ValidatableRecordBase.GetHashCode()
ValidatableRecordBase.Equals(ValidatableRecordBase)
ValidatableRecordBase.<Clone>$()
ValidatableRecordBase.EqualityContract
Namespace: wan24.AutoDiscover.Models
Assembly: wan24AutoDiscoverShared.dll
Syntax
public record DiscoveryConfig : ValidatableRecordBase, IObjectValidatable, IValidatableObject, IEquatable<ValidatableRecordBase>, IEquatable<DiscoveryConfig>
Remarks
Constructor
Constructors
| Edit this page View SourceDiscoveryConfig()
Discovery configuration
Declaration
public DiscoveryConfig()
Remarks
Constructor
Fields
| Edit this page View Source_DiscoveryType
Discovery configuration type
Declaration
protected Type? _DiscoveryType
Field Value
Type | Description |
---|---|
Type |
Properties
| Edit this page View SourceCurrent
Current configuration
Declaration
public static DiscoveryConfig Current { get; set; }
Property Value
Type | Description |
---|---|
DiscoveryConfig |
DiscoveryType
Discovery configuration type
Declaration
[JsonIgnore]
public virtual Type DiscoveryType { get; }
Property Value
Type | Description |
---|---|
Type |
DiscoveryTypeName
Discovery configuration type name
Declaration
[StringLength(255, MinimumLength = 1)]
public string? DiscoveryTypeName { get; init; }
Property Value
Type | Description |
---|---|
string |
EmailMappings
JSON file path which contains the email mappings list
Declaration
[StringLength(32767, MinimumLength = 1)]
public string? EmailMappings { get; init; }
Property Value
Type | Description |
---|---|
string |
KnownProxies
Known http proxies
Declaration
public IReadOnlySet<IPAddress> KnownProxies { get; init; }
Property Value
Type | Description |
---|---|
IReadOnlySet<IPAddress> |
LogFile
Logfile path
Declaration
[StringLength(32767, MinimumLength = 1)]
public string? LogFile { get; init; }
Property Value
Type | Description |
---|---|
string |
PreForkResponses
Number of POX XML responses to pre-fork
Declaration
[Range(1, 2147483647)]
public int PreForkResponses { get; init; }
Property Value
Type | Description |
---|---|
int |
PreReloadCommand
Command to execute (and optional arguments) before reloading the configuration
Declaration
[CountLimit(1, 255)]
[ItemStringLength(32767, ItemValidationTargets.Item)]
public string[]? PreReloadCommand { get; init; }
Property Value
Type | Description |
---|---|
string[] |
WatchEmailMappings
Watch email mappings list file changes for reloading the configuration?
Declaration
public bool WatchEmailMappings { get; init; }
Property Value
Type | Description |
---|---|
bool |
WatchFiles
Additional file paths to watch for an automatic configuration reload
Declaration
[CountLimit(1, 255)]
[ItemStringLength(32767, ItemValidationTargets.Item)]
public string[]? WatchFiles { get; init; }
Property Value
Type | Description |
---|---|
string[] |
Methods
| Edit this page View SourceGetDiscoveryConfigAsync(IConfigurationRoot, CancellationToken)
Get the discovery configuration
Declaration
public virtual Task<IReadOnlyDictionary<string, DomainConfig>> GetDiscoveryConfigAsync(IConfigurationRoot config, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationRoot | config | Configuration |
CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<IReadOnlyDictionary<string, DomainConfig>> | Discovery configuration |
Implements
wan24.ObjectValidation.IObjectValidatable