Open xantari opened 2 months ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
@jsquire do we have a criteria on deciding when to add extensions for clients across our SDKs?
@jsquire do we have a criteria on deciding when to add extensions for clients across our SDKs?
@pallavit: General guidance has been that we should have an extension to register every top-level client exposed by a library, unless they have special needs for use/lifetime management where passing them around doesn't make sense.
It may be worth having a static analyzer for this then - we may have a few gaps in our SDKs. /cc: @m-nash do we have this added to the DPG generator i.e. we create an extension for each builder?
Library name
Azure.Core.Extensions
Please describe the feature.
Currently you only have registration methods for AddSearchIndexClient and AddSearchClient.
It would be helpful to also add AddSearchIndexerClient to this: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/src/SearchClientBuilderExtensions.cs
The above is the current work around (not the end of the world, but you had extension methods for the other client registrations so I wouldn't see why you wouldn't add this one as well.