你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureClientServiceCollectionExtensions.AddAzureClients 方法

定义

IAzureClientFactory<TClient> 和相关服务添加到 IServiceCollection。 创建配置的客户端后,将启用 Azure SDK 日志转发到 ILogger

public static void AddAzureClients (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Action<Microsoft.Extensions.Azure.AzureClientFactoryBuilder> configureClients);
static member AddAzureClients : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Azure.AzureClientFactoryBuilder> -> unit
<Extension()>
Public Sub AddAzureClients (collection As IServiceCollection, configureClients As Action(Of AzureClientFactoryBuilder))

参数

configureClients
Action<AzureClientFactoryBuilder>

可用于配置客户端的 AzureClientFactoryBuilder

适用于