Condividi tramite


AzureClientServiceCollectionExtensions Class

Definition

Azure clients builder extensions for IServiceCollection.

public static class AzureClientServiceCollectionExtensions
type AzureClientServiceCollectionExtensions = class
Public Module AzureClientServiceCollectionExtensions
Inheritance
AzureClientServiceCollectionExtensions

Methods

AddAzureClients(IServiceCollection, Action<AzureClientFactoryBuilder>)

Adds the IAzureClientFactory<TClient> and related services to the IServiceCollection. Azure SDK log forwarding to ILogger is enabled once the configured client is created.

AddAzureClientsCore(IServiceCollection)

Adds the minimum essential Azure SDK interop services like AzureEventSourceLogForwarder and AzureComponentFactory to the specified IServiceCollection without registering any client types. Azure SDK log forwarding to ILogger is disabled by default. It can be enabled by calling the Start() method. Alternatively, you can use the Microsoft.Extensions.Azure.AzureClientServiceCollectionExtensions.AddAzureClientsCore(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Boolean) overload and pass true to enable log forwarding.

Applies to