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,
48
/// <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>
54
Action<
AzureSearchSettings
>? configureSettings = null,
62
private sealed class AzureSearchComponent : AzureComponent<
AzureSearchSettings
, SearchIndexClient, SearchClientOptions>
70
AzureClientFactoryBuilder azureFactoryBuilder,
AzureSearchSettings
settings, string connectionName,
77
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.");
98
protected override void BindSettingsToConfiguration(
AzureSearchSettings
settings, IConfiguration config)
103
protected override IHealthCheck CreateHealthCheck(SearchIndexClient client,
AzureSearchSettings
settings)
106
protected override bool GetHealthCheckEnabled(
AzureSearchSettings
settings)
109
protected override TokenCredential? GetTokenCredential(
AzureSearchSettings
settings)
112
protected override bool GetMetricsEnabled(
AzureSearchSettings
settings)
115
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)