ConfigurationManager<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConfigurationManager<T>(String, IConfigurationRetriever<T>)
Instantiates a new ConfigurationManager<T> that manages automatic and controls refreshing on configuration data.
public ConfigurationManager (string metadataAddress, Microsoft.IdentityModel.Protocols.IConfigurationRetriever<T> configRetriever);
new Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)> : string * Microsoft.IdentityModel.Protocols.IConfigurationRetriever<'T (requires 'T : null)> -> Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)>
Public Sub New (metadataAddress As String, configRetriever As IConfigurationRetriever(Of T))
Parameters
- metadataAddress
- String
The address to obtain configuration.
- configRetriever
- IConfigurationRetriever<T>
Applies to
ConfigurationManager<T>(String, IConfigurationRetriever<T>, IDocumentRetriever)
Instantiates a new ConfigurationManager<T> that manages automatic and controls refreshing on configuration data.
public ConfigurationManager (string metadataAddress, Microsoft.IdentityModel.Protocols.IConfigurationRetriever<T> configRetriever, Microsoft.IdentityModel.Protocols.IDocumentRetriever docRetriever);
new Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)> : string * Microsoft.IdentityModel.Protocols.IConfigurationRetriever<'T (requires 'T : null)> * Microsoft.IdentityModel.Protocols.IDocumentRetriever -> Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)>
Public Sub New (metadataAddress As String, configRetriever As IConfigurationRetriever(Of T), docRetriever As IDocumentRetriever)
Parameters
- metadataAddress
- String
The address to obtain configuration.
- configRetriever
- IConfigurationRetriever<T>
- docRetriever
- IDocumentRetriever
The IDocumentRetriever that reaches out to obtain the configuration.
Exceptions
If 'docRetriever' is null.
Applies to
ConfigurationManager<T>(String, IConfigurationRetriever<T>, HttpClient)
Instantiates a new ConfigurationManager<T> that manages automatic and controls refreshing on configuration data.
public ConfigurationManager (string metadataAddress, Microsoft.IdentityModel.Protocols.IConfigurationRetriever<T> configRetriever, System.Net.Http.HttpClient httpClient);
new Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)> : string * Microsoft.IdentityModel.Protocols.IConfigurationRetriever<'T (requires 'T : null)> * System.Net.Http.HttpClient -> Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)>
Public Sub New (metadataAddress As String, configRetriever As IConfigurationRetriever(Of T), httpClient As HttpClient)
Parameters
- metadataAddress
- String
The address to obtain configuration.
- configRetriever
- IConfigurationRetriever<T>
- httpClient
- HttpClient
The client to use when obtaining configuration.
Applies to
ConfigurationManager<T>(String, IConfigurationRetriever<T>, IDocumentRetriever, LastKnownGoodConfigurationCacheOptions)
Instantiates a new ConfigurationManager<T> that manages automatic and controls refreshing on configuration data.
public ConfigurationManager (string metadataAddress, Microsoft.IdentityModel.Protocols.IConfigurationRetriever<T> configRetriever, Microsoft.IdentityModel.Protocols.IDocumentRetriever docRetriever, Microsoft.IdentityModel.Protocols.Configuration.LastKnownGoodConfigurationCacheOptions lkgCacheOptions);
new Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)> : string * Microsoft.IdentityModel.Protocols.IConfigurationRetriever<'T (requires 'T : null)> * Microsoft.IdentityModel.Protocols.IDocumentRetriever * Microsoft.IdentityModel.Protocols.Configuration.LastKnownGoodConfigurationCacheOptions -> Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)>
Public Sub New (metadataAddress As String, configRetriever As IConfigurationRetriever(Of T), docRetriever As IDocumentRetriever, lkgCacheOptions As LastKnownGoodConfigurationCacheOptions)
Parameters
- metadataAddress
- String
The address to obtain configuration.
- configRetriever
- IConfigurationRetriever<T>
- docRetriever
- IDocumentRetriever
The IDocumentRetriever that reaches out to obtain the configuration.
- lkgCacheOptions
- LastKnownGoodConfigurationCacheOptions
Exceptions
If 'lkgCacheOptions' is null.
Applies to
ConfigurationManager<T>(String, IConfigurationRetriever<T>, IDocumentRetriever, IConfigurationValidator<T>)
Instantiates a new ConfigurationManager<T> with configuration validator that manages automatic and controls refreshing on configuration data.
public ConfigurationManager (string metadataAddress, Microsoft.IdentityModel.Protocols.IConfigurationRetriever<T> configRetriever, Microsoft.IdentityModel.Protocols.IDocumentRetriever docRetriever, Microsoft.IdentityModel.Protocols.IConfigurationValidator<T> configValidator);
new Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)> : string * Microsoft.IdentityModel.Protocols.IConfigurationRetriever<'T (requires 'T : null)> * Microsoft.IdentityModel.Protocols.IDocumentRetriever * Microsoft.IdentityModel.Protocols.IConfigurationValidator<'T (requires 'T : null)> -> Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)>
Public Sub New (metadataAddress As String, configRetriever As IConfigurationRetriever(Of T), docRetriever As IDocumentRetriever, configValidator As IConfigurationValidator(Of T))
Parameters
- metadataAddress
- String
The address to obtain configuration.
- configRetriever
- IConfigurationRetriever<T>
- docRetriever
- IDocumentRetriever
The IDocumentRetriever that reaches out to obtain the configuration.
- configValidator
- IConfigurationValidator<T>
Exceptions
If 'configValidator' is null.
Applies to
ConfigurationManager<T>(String, IConfigurationRetriever<T>, IDocumentRetriever, IConfigurationValidator<T>, LastKnownGoodConfigurationCacheOptions)
Instantiates a new ConfigurationManager<T> with configuration validator that manages automatic and controls refreshing on configuration data.
public ConfigurationManager (string metadataAddress, Microsoft.IdentityModel.Protocols.IConfigurationRetriever<T> configRetriever, Microsoft.IdentityModel.Protocols.IDocumentRetriever docRetriever, Microsoft.IdentityModel.Protocols.IConfigurationValidator<T> configValidator, Microsoft.IdentityModel.Protocols.Configuration.LastKnownGoodConfigurationCacheOptions lkgCacheOptions);
new Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)> : string * Microsoft.IdentityModel.Protocols.IConfigurationRetriever<'T (requires 'T : null)> * Microsoft.IdentityModel.Protocols.IDocumentRetriever * Microsoft.IdentityModel.Protocols.IConfigurationValidator<'T (requires 'T : null)> * Microsoft.IdentityModel.Protocols.Configuration.LastKnownGoodConfigurationCacheOptions -> Microsoft.IdentityModel.Protocols.ConfigurationManager<'T (requires 'T : null)>
Public Sub New (metadataAddress As String, configRetriever As IConfigurationRetriever(Of T), docRetriever As IDocumentRetriever, configValidator As IConfigurationValidator(Of T), lkgCacheOptions As LastKnownGoodConfigurationCacheOptions)
Parameters
- metadataAddress
- String
The address to obtain configuration.
- configRetriever
- IConfigurationRetriever<T>
- docRetriever
- IDocumentRetriever
The IDocumentRetriever that reaches out to obtain the configuration.
- configValidator
- IConfigurationValidator<T>
- lkgCacheOptions
- LastKnownGoodConfigurationCacheOptions
Exceptions
If 'configValidator' is null.