20 references to AzureSearchSettings
Aspire.Azure.Search.Documents (14)
AspireAzureSearchExtensions.cs (13)
31
/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="
AzureSearchSettings
"/>. It's invoked after the settings are read from the configuration.</param>
37
Action<
AzureSearchSettings
>? configureSettings = null,
51
/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="
AzureSearchSettings
"/>. It's invoked after the settings are read from the configuration.</param>
57
Action<
AzureSearchSettings
>? configureSettings = null,
66
private sealed class AzureSearchComponent : AzureComponent<
AzureSearchSettings
, SearchIndexClient, SearchClientOptions>
74
AzureClientFactoryBuilder azureFactoryBuilder,
AzureSearchSettings
settings, string connectionName,
81
throw new InvalidOperationException($"A SearchIndexClient could not be configured. Ensure valid connection information was provided in 'ConnectionStrings:{connectionName}' or specify an '{nameof(
AzureSearchSettings
.Endpoint)}' in the '{configurationSectionName}' configuration section.");
102
protected override void BindSettingsToConfiguration(
AzureSearchSettings
settings, IConfiguration config)
107
protected override IHealthCheck CreateHealthCheck(SearchIndexClient client,
AzureSearchSettings
settings)
110
protected override bool GetHealthCheckEnabled(
AzureSearchSettings
settings)
113
protected override TokenCredential? GetTokenCredential(
AzureSearchSettings
settings)
116
protected override bool GetMetricsEnabled(
AzureSearchSettings
settings)
119
protected override bool GetTracingEnabled(
AzureSearchSettings
settings)
AssemblyInfo.cs (1)
8
[assembly: ConfigurationSchema("Aspire:Azure:Search:Documents", typeof(
AzureSearchSettings
))]
Aspire.Azure.Search.Documents.Tests (6)
ConformanceTests.cs (6)
15
public class ConformanceTests : ConformanceTests<SearchIndexClient,
AzureSearchSettings
>
63
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
AzureSearchSettings
>? configure = null, string? key = null)
74
void ConfigureCredentials(
AzureSearchSettings
settings)
93
protected override void SetHealthCheck(
AzureSearchSettings
options, bool enabled)
96
protected override void SetMetrics(
AzureSearchSettings
options, bool enabled)
99
protected override void SetTracing(
AzureSearchSettings
options, bool enabled)