From c24f8f6f0b29f2ae00c4d2b6b0ec238beb5b45ec Mon Sep 17 00:00:00 2001 From: Louis-Axel Ambroise Date: Wed, 15 Mar 2023 19:15:51 +0100 Subject: [PATCH] Fix delegate factory --- src/FasTnT.Host/Features/v2_0/DelegateFactory.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FasTnT.Host/Features/v2_0/DelegateFactory.cs b/src/FasTnT.Host/Features/v2_0/DelegateFactory.cs index 03374d29..b86e3534 100644 --- a/src/FasTnT.Host/Features/v2_0/DelegateFactory.cs +++ b/src/FasTnT.Host/Features/v2_0/DelegateFactory.cs @@ -1,7 +1,6 @@ using FasTnT.Domain; using FasTnT.Domain.Exceptions; using FasTnT.Host.Features.v2_0.Communication.Json.Formatters; -using FasTnT.Host.Features.v2_0.Extensions; namespace FasTnT.Host.Features.v2_0; @@ -21,7 +20,7 @@ public static Delegate Create(Func handlerProvider) var options = new RequestDelegateFactoryOptions { ServiceProvider = context.RequestServices }; var factory = RequestDelegateFactory.Create(handlerProvider(context), options); - return factory.RequestDelegate.Invoke(context); + await factory.RequestDelegate.Invoke(context); } catch (Exception ex) {