AzureClientServiceCollectionExtensions.AddAzureClientsCore 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.
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.
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
- collection
- IServiceCollection
The IServiceCollection.
Applies to
Azure SDK for .NET