Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AzureClientServiceCollectionExtensions.AddAzureClientsCore Method

Definition

Namespace:
Microsoft.Extensions.Azure
Assembly:
Microsoft.Extensions.Azure.dll
Package:
Microsoft.Extensions.Azure v1.14.0
Source:
AzureClientServiceCollectionExtensions.cs

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.

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 <returns>true</returns> to enable log forwarding.

public static void AddAzureClientsCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection);
static member AddAzureClientsCore : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit
<Extension()>
Public Sub AddAzureClientsCore (collection As IServiceCollection)

Parameters

Applies to


Feedback

Was this page helpful?