Skip to content

Commit

Permalink
Fix delegate factory
Browse files Browse the repository at this point in the history
  • Loading branch information
louisaxel-ambroise committed Mar 15, 2023
1 parent 828bfe8 commit c24f8f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FasTnT.Host/Features/v2_0/DelegateFactory.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -21,7 +20,7 @@ public static Delegate Create(Func<HttpContext, Delegate> 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)
{
Expand Down

0 comments on commit c24f8f6

Please sign in to comment.