共用方式為


DnsServiceEndpointProviderOptions Class

Definition

Options for configuring Microsoft.Extensions.ServiceDiscovery.Dns.DnsServiceEndpointProvider.

public class DnsServiceEndpointProviderOptions
type DnsServiceEndpointProviderOptions = class
Public Class DnsServiceEndpointProviderOptions
Inheritance
DnsServiceEndpointProviderOptions

Constructors

DnsServiceEndpointProviderOptions()

Properties

DefaultRefreshPeriod

Gets or sets the default refresh period for endpoints resolved from DNS.

MaxRetryPeriod

Gets or sets the maximum period between retries.

MinRetryPeriod

Gets or sets the initial period between retries.

RetryBackOffFactor

Gets or sets the retry period growth factor.

ShouldApplyHostNameMetadata

Gets or sets a delegate used to determine whether to apply host name metadata to each resolved endpoint. Defaults to false.

Applies to