AzureClientFactoryBuilder.IAzureClientFactoryBuilder.RegisterClientFactory<TClient,TOptions> 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.
Registers a client in the dependency injection container using the factory to create a client instance.
Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> IAzureClientFactoryBuilder.RegisterClientFactory<TClient,TOptions> (Func<TOptions,TClient> clientFactory) where TOptions : class;
abstract member Azure.Core.Extensions.IAzureClientFactoryBuilder.RegisterClientFactory : Func<'Options, 'Client (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
override this.Azure.Core.Extensions.IAzureClientFactoryBuilder.RegisterClientFactory : Func<'Options, 'Client (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
Function RegisterClientFactory(Of TClient, TOptions) (clientFactory As Func(Of TOptions, TClient)) As IAzureClientBuilder(Of TClient, TOptions) Implements IAzureClientFactoryBuilder.RegisterClientFactory
Type Parameters
- TClient
The type of the client.
- TOptions
The client options type used the client.
Parameters
- clientFactory
- Func<TOptions,TClient>
The factory, that given the instance of options, returns a client instance.
Returns
IAzureClientBuilder<TClient,TOptions> that allows customizing the client registration.
Implements
Applies to
Azure SDK for .NET
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: