Files
mixtape/Finch/Context/FinchContextMiddleware.cs
T
2026-04-07 14:23:29 +02:00

21 lines
401 B
C#

using Microsoft.AspNetCore.Http;
namespace Finch.Context
{
public class FinchContextMiddleware
{
RequestDelegate _next;
public FinchContextMiddleware(RequestDelegate next)
{
_next = next;
}
public async Task Invoke(HttpContext httpContext, IFinchContext finchContext)
{
await finchContext.Resolve(httpContext);
await _next(httpContext);
}
}
}