3 instantiations of MicrosoftAzureCosmosSettings
Aspire.Microsoft.Azure.Cosmos (1)
AspireMicrosoftAzureCosmosExtensions.cs (1)
193var settings = new MicrosoftAzureCosmosSettings();
Aspire.Microsoft.Azure.Cosmos.Tests (2)
ConfigurationTests.cs (2)
12=> Assert.Null(new MicrosoftAzureCosmosSettings().ConnectionString); 16=> Assert.False(new MicrosoftAzureCosmosSettings().DisableTracing);
34 references to MicrosoftAzureCosmosSettings
Aspire.Microsoft.Azure.Cosmos (27)
AspireMicrosoftAzureCosmosExtensions.cs (23)
28/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="MicrosoftAzureCosmosSettings"/>. It's invoked after the settings are read from the configuration.</param> 35Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 44/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="MicrosoftAzureCosmosSettings"/>. It's invoked after the settings are read from the configuration.</param> 60Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 70/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="MicrosoftAzureCosmosSettings"/>. It's invoked after the settings are read from the configuration.</param> 77Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 91/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="MicrosoftAzureCosmosSettings"/>. It's invoked after the settings are read from the configuration.</param> 107Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 122/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="MicrosoftAzureCosmosSettings"/>. It's invoked after the settings are read from the configuration.</param> 129Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 139/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="MicrosoftAzureCosmosSettings"/>. It's invoked after the settings are read from the configuration.</param> 146Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 155private static void AddCosmosHealthCheck(this IHostApplicationBuilder builder, MicrosoftAzureCosmosSettings settings, object? serviceKey) 186private static MicrosoftAzureCosmosSettings GetSettings( 189Action<MicrosoftAzureCosmosSettings>? configureSettings 193var settings = new MicrosoftAzureCosmosSettings(); 220Action<MicrosoftAzureCosmosSettings>? configureSettings, 241Action<MicrosoftAzureCosmosSettings>? configureSettings, 270Action<MicrosoftAzureCosmosSettings>? configureSettings, 285private static (MicrosoftAzureCosmosSettings Settings, Func<IServiceProvider, CosmosClient> ClientFactory) GetClientRegistration( 288Action<MicrosoftAzureCosmosSettings>? configureSettings, 291var settings = builder.GetSettings(connectionName, configureSettings); 326internal static CosmosClient GetCosmosClient(string connectionName, MicrosoftAzureCosmosSettings settings, CosmosClientOptions clientOptions)
AssemblyInfo.cs (1)
7[assembly: ConfigurationSchema("Aspire:Microsoft:Azure:Cosmos", typeof(MicrosoftAzureCosmosSettings))]
CosmosDatabaseBuilder.cs (3)
18private readonly MicrosoftAzureCosmosSettings _settings; 30MicrosoftAzureCosmosSettings settings, 43MicrosoftAzureCosmosSettings settings,
Aspire.Microsoft.Azure.Cosmos.Tests (7)
ConformanceTests.cs (5)
13public class ConformanceTests : ConformanceTests<CosmosClient, MicrosoftAzureCosmosSettings> 28protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftAzureCosmosSettings>? configure = null, string? key = null) 40protected override void SetHealthCheck(MicrosoftAzureCosmosSettings options, bool enabled) 43protected override void SetTracing(MicrosoftAzureCosmosSettings options, bool enabled) 46protected override void SetMetrics(MicrosoftAzureCosmosSettings options, bool enabled)
MicrosoftAzureCosmosPublicApiTests.cs (2)
97Action<MicrosoftAzureCosmosSettings>? configureSettings = null; 120Action<MicrosoftAzureCosmosSettings>? configureSettings = null;