From fc1124cc5384aca55849ca61b515624ad6e486d4 Mon Sep 17 00:00:00 2001 From: Bootykit Date: Fri, 1 May 2026 15:33:15 -0500 Subject: [PATCH] Update InjectionConcern.cs Must be awaited to ensure code is executed fully before scope is disposed. Initially caused Task Cancellation exception. --- .../DependencyInjection/Infrastructure/InjectionConcern.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/DependencyInjection/Infrastructure/InjectionConcern.cs b/Modules/DependencyInjection/Infrastructure/InjectionConcern.cs index 93f16f635..520a4f0bc 100644 --- a/Modules/DependencyInjection/Infrastructure/InjectionConcern.cs +++ b/Modules/DependencyInjection/Infrastructure/InjectionConcern.cs @@ -29,13 +29,13 @@ internal InjectionConcern(IHandler content, IServiceProvider services) public ValueTask PrepareAsync() => Content.PrepareAsync(); - public ValueTask HandleAsync(IRequest request) + public async ValueTask HandleAsync(IRequest request) { using var scope = Services.CreateScope(); request.Configure(Services, scope); - return Content.HandleAsync(request); + return await Content.HandleAsync(request); } #endregion