Skip to content

Commit 00d2912

Browse files
committed
wip
1 parent ee05cb6 commit 00d2912

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

playground/CosmosEndToEnd/CosmosEndToEnd.ApiService/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
builder.AddAzureCosmosClient("cosmos");
1212
builder.AddCosmosDbContext<TestCosmosContext>("cosmos", "ef", configureDbContextOptions =>
1313
{
14+
System.Console.WriteLine($"**************** CosmosEndToEnd setting timeout: {configureDbContextOptions.RequestTimeout}");
1415
configureDbContextOptions.RequestTimeout = TimeSpan.FromSeconds(120);
1516
});
1617

src/Components/Aspire.Microsoft.EntityFrameworkCore.Cosmos/AspireAzureEFCoreCosmosExtensions.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public static class AspireAzureEFCoreCosmosExtensions
6363
}
6464
}
6565

66+
System.Console.WriteLine($"** Calling configureSettings");
6667
configureSettings?.Invoke(settings);
6768

6869
builder.Services.AddDbContextPool<TContext>(ConfigureDbContext);
@@ -106,10 +107,16 @@ void UseCosmosBody(CosmosDbContextOptionsBuilder builder)
106107
builder.LimitToEndpoint(true);
107108
}
108109

110+
System.Console.WriteLine($"** CosmosEndToEnd setting timeout: {settings.RequestTimeout}");
109111
if (settings.RequestTimeout.HasValue)
110112
{
113+
Console.WriteLine($"** RequestTimeout: {settings.RequestTimeout}");
111114
builder.RequestTimeout(settings.RequestTimeout.Value);
112115
}
116+
else
117+
{
118+
Console.WriteLine("** RequestTimeout: Default");
119+
}
113120
}
114121
}
115122

tests/Aspire.Playground.Tests/ProjectSpecificTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3-
3+
#if false
44
using Aspire.Hosting;
55
using Aspire.Hosting.Tests.Utils;
66
using SamplesIntegrationTests;
@@ -61,3 +61,5 @@ internal static Task WaitForAllTextAsync(DistributedApplication app, IEnumerable
6161
return app.WaitForAllTextAsync(logTexts, resourceName, cts.Token);
6262
}
6363
}
64+
65+
#endif

0 commit comments

Comments
 (0)