From 18b5d403dcc52f0b2c5ec2254f12fefe08ee1cd0 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Thu, 29 Aug 2024 13:28:15 -0400 Subject: [PATCH] Increase efcore timeout for Cosmos in CosmosEndToEnd .. playground app. Fixes issue: https://github.com/dotnet/aspire/issues/5415 --- .../CosmosEndToEnd/CosmosEndToEnd.ApiService/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playground/CosmosEndToEnd/CosmosEndToEnd.ApiService/Program.cs b/playground/CosmosEndToEnd/CosmosEndToEnd.ApiService/Program.cs index 04bb2067fef..7aec7379ffe 100644 --- a/playground/CosmosEndToEnd/CosmosEndToEnd.ApiService/Program.cs +++ b/playground/CosmosEndToEnd/CosmosEndToEnd.ApiService/Program.cs @@ -9,7 +9,10 @@ builder.AddServiceDefaults(); builder.AddAzureCosmosClient("cosmos"); -builder.AddCosmosDbContext("cosmos", "ef"); +builder.AddCosmosDbContext("cosmos", "ef", configureDbContextOptions => +{ + configureDbContextOptions.RequestTimeout = TimeSpan.FromSeconds(120); +}); var app = builder.Build();