added the SearchIndexerClient as extension method
This pull request introduces support for the Azure Search Indexer client to the Aspire Azure Search integration. It adds new extension methods for registering and configuring SearchIndexerClient instances, including dependency injection and health checks, and updates the playground sample to demonstrate usage. Several code quality improvements and suppressions for code analysis warnings are also included.
Azure Search Indexer Client Integration:
- Added
AspireAzureSearchIndexerExtensionswithAddAzureSearchIndexerClientandAddKeyedAzureSearchIndexerClientextension methods for registeringSearchIndexerClientin DI, including configuration and health check support. - Introduced
AzureSearchIndexerHealthCheckto provide health monitoring for theSearchIndexerClient.
Playground Sample Enhancements:
- Updated
Program.csto register and demonstrate use ofSearchIndexerClient, including logging of indexers and index names.
Code Quality and Maintenance:
- Added pragma suppressions for various code analysis warnings (e.g., unused parameters, placeholder casing, unused variables) to improve code clarity and maintainability in the playground sample. [1] [2] [3] [4] [5]
- Improved null argument checking in
AzureSearchIndexHealthCheckand added documentation comments.
Project and Packaging:
- Added a new project file for
Aspire.Azure.Searchwith appropriate metadata, references, and shared source files.
🚀 Dogfood this PR with:
⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12413
Or
- Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12413"
@dotnet-policy-service agree
Thanks for the contribution, @The3G. Can you add some tests for this change?