Share via


AspireAzureSearchExtensions Class

Definition

Provides extension methods for registering SearchIndexClient as a singleton in the services provided by the IHostApplicationBuilder.

public static class AspireAzureSearchExtensions
type AspireAzureSearchExtensions = class
Public Module AspireAzureSearchExtensions
Inheritance
AspireAzureSearchExtensions

Methods

AddAzureSearchClient(IHostApplicationBuilder, String, Action<AzureSearchSettings>, Action<IAzureClientBuilder<SearchIndexClient,SearchClientOptions>>)

Registers SearchIndexClient as a singleton in the services provided by the builder.

AddKeyedAzureSearchClient(IHostApplicationBuilder, String, Action<AzureSearchSettings>, Action<IAzureClientBuilder<SearchIndexClient,SearchClientOptions>>)

Registers SearchIndexClient as a singleton for given name in the services provided by the builder.

Applies to