AzureClientServiceCollectionExtensions Class
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.
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
Azure SDK for .NET
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin