17 references to EntityFrameworkCoreCosmosSettings
Aspire.Microsoft.EntityFrameworkCore.Cosmos (11)
AspireAzureEFCoreCosmosExtensions.cs (10)
37/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="EntityFrameworkCoreCosmosSettings.ConnectionString"/> is not provided.</exception> 42Action<EntityFrameworkCoreCosmosSettings>? configureSettings = null, 49var settings = builder.GetDbContextSettings<TContext, EntityFrameworkCoreCosmosSettings>( 123Action<EntityFrameworkCoreCosmosSettings>? configureSettings = null) where TContext : DbContext 127var settings = builder.GetDbContextSettings<TContext, EntityFrameworkCoreCosmosSettings>( 158private static void ConfigureRequestTimeout<TContext>(DbContextOptionsBuilder builder, EntityFrameworkCoreCosmosSettings settings) 167throw new InvalidOperationException($"Conflicting values for 'RequestTimeout' were found in {nameof(EntityFrameworkCoreCosmosSettings)} and set in DbContextOptions<{typeof(TContext).Name}>."); 174private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, EntityFrameworkCoreCosmosSettings settings) where TContext : DbContext
AssemblyInfo.cs (1)
7[assembly: ConfigurationSchema("Aspire:Microsoft:EntityFrameworkCore:Cosmos", typeof(EntityFrameworkCoreCosmosSettings))]
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
ConformanceTests.cs (5)
15public class ConformanceTests : ConformanceTests<TestDbContext, EntityFrameworkCoreCosmosSettings> 36protected override void RegisterComponent(HostApplicationBuilder builder, Action<EntityFrameworkCoreCosmosSettings>? configure = null, string? key = null) 39protected override void SetHealthCheck(EntityFrameworkCoreCosmosSettings options, bool enabled) 42protected override void SetTracing(EntityFrameworkCoreCosmosSettings options, bool enabled) 45protected override void SetMetrics(EntityFrameworkCoreCosmosSettings options, bool enabled)
EnrichCosmosDbTests.cs (1)
21protected override void RegisterComponent(HostApplicationBuilder builder, Action<EntityFrameworkCoreCosmosSettings>? configure = null, string? key = null)