Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQ] AddClient support using the configuration to create a client instance #47160

Open
scrocquesel-ml150 opened this issue Nov 14, 2024 · 3 comments
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Extensions ASP.NET Core extensions feature-request This issue requires a new behavior in the product in order be resolved. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team
Milestone

Comments

@scrocquesel-ml150
Copy link

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"));
@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Extensions ASP.NET Core extensions needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 14, 2024
Copy link

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@jsquire jsquire removed their assignment Nov 14, 2024
@jsquire jsquire added feature-request This issue requires a new behavior in the product in order be resolved. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 14, 2024
@jsquire jsquire added this to the Backlog milestone Nov 14, 2024
@jsquire
Copy link
Member

jsquire commented Nov 14, 2024

Hi @scrocquesel-ml150. Thanks for reaching out and for your suggestion. Integrating with configuration is an area that we're currently investigating for the Azure SDK for .NET packages. We'll consider this request as part of that discovery.

@jsquire
Copy link
Member

jsquire commented Nov 14, 2024

//fyi: @annelo-msft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Extensions ASP.NET Core extensions feature-request This issue requires a new behavior in the product in order be resolved. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team
Projects
None yet
Development

No branches or pull requests

2 participants