AzureClientBuilderExtensions.ConfigureOptions Method
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
ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, IConfiguration) |
Configures client options using provided IConfiguration instance. |
ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, Action<TOptions,IServiceProvider>) |
Adds a delegate to configure the client options. All delegates are executed in order they were added. |
ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, Action<TOptions>) |
Adds a delegate to configure the client options. All delegates are executed in order they were added. |
ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, IConfiguration)
Configures client options using provided IConfiguration instance.
public static Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> ConfigureOptions<TClient,TOptions> (this Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> builder, Microsoft.Extensions.Configuration.IConfiguration configuration) where TOptions : class;
static member ConfigureOptions : Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> * Microsoft.Extensions.Configuration.IConfiguration -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
<Extension()>
Public Function ConfigureOptions(Of TClient, TOptions) (builder As IAzureClientBuilder(Of TClient, TOptions), configuration As IConfiguration) As IAzureClientBuilder(Of TClient, TOptions)
Type Parameters
- TClient
The type of the client.
- TOptions
The options type the client uses.
Parameters
The client builder instance.
- configuration
- IConfiguration
The configuration instance to use.
Returns
The client builder instance.
Applies to
ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, Action<TOptions,IServiceProvider>)
Adds a delegate to configure the client options. All delegates are executed in order they were added.
public static Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> ConfigureOptions<TClient,TOptions> (this Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> builder, Action<TOptions,IServiceProvider> configureOptions) where TOptions : class;
static member ConfigureOptions : Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> * Action<'Options, IServiceProvider (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
<Extension()>
Public Function ConfigureOptions(Of TClient, TOptions) (builder As IAzureClientBuilder(Of TClient, TOptions), configureOptions As Action(Of TOptions, IServiceProvider)) As IAzureClientBuilder(Of TClient, TOptions)
Type Parameters
- TClient
The type of the client.
- TOptions
The options type the client uses.
Parameters
The client builder instance.
- configureOptions
- Action<TOptions,IServiceProvider>
The delegate to use to configure options.
Returns
The client builder instance.
Applies to
ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, Action<TOptions>)
Adds a delegate to configure the client options. All delegates are executed in order they were added.
public static Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> ConfigureOptions<TClient,TOptions> (this Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> builder, Action<TOptions> configureOptions) where TOptions : class;
static member ConfigureOptions : Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> * Action<'Options (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
<Extension()>
Public Function ConfigureOptions(Of TClient, TOptions) (builder As IAzureClientBuilder(Of TClient, TOptions), configureOptions As Action(Of TOptions)) As IAzureClientBuilder(Of TClient, TOptions)
Type Parameters
- TClient
The type of the client.
- TOptions
The options type the client uses.
Parameters
The client builder instance.
- configureOptions
- Action<TOptions>
The delegate to use to configure options.
Returns
The client builder instance.
Applies to
Azure SDK for .NET