d2b95b4aea
This reverts commit 3954f95abc.
23 lines
447 B
C#
23 lines
447 B
C#
using Microsoft.AspNetCore.Http;
|
|
using System.Threading.Tasks;
|
|
using zero.Core;
|
|
|
|
namespace zero.Web.Middlewares
|
|
{
|
|
public class ZeroContextMiddleware
|
|
{
|
|
RequestDelegate Next;
|
|
|
|
public ZeroContextMiddleware(RequestDelegate next)
|
|
{
|
|
Next = next;
|
|
}
|
|
|
|
public async Task Invoke(HttpContext httpContext, IZeroContext zeroContext)
|
|
{
|
|
await zeroContext.Resolve(httpContext);
|
|
await Next(httpContext);
|
|
}
|
|
}
|
|
}
|