-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageExtensionsASP.NET Core extensionsASP.NET Core extensionscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Milestone
Description
Library name
Microsoft.Extensions.Azure
Please describe the feature.
I want to be able to register client using a configuration object to create a client instance.
The Azure.IoT.DeviceUpdate
do not have support for dependency injection with a dedicated extension method (see #43099). Meanwhile, I would like to register it myself with configuration object.
serviceCollection.AddAzureClients(clientBuilder =>
{
clientBuilder.AddClient<DeviceUpdateClient, DeviceUpdateClientOptions>(configuration.GetSection("DUConnection"));
});
Should do the same thing as other client extension, for example
clientBuilder.AddEventHubProducerClient(configuration.GetSection("EventHubConnection"));
Metadata
Metadata
Assignees
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageExtensionsASP.NET Core extensionsASP.NET Core extensionscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team