2020-02-18 08:32:06 +01:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
|
2020-02-24 10:51:48 +01:00
|
|
|
namespace Umbraco.Web.Website.AspNetCore
|
2020-02-18 08:32:06 +01:00
|
|
|
{
|
2020-02-24 10:51:48 +01:00
|
|
|
public class UmbracoWebsiteMiddleware
|
2020-02-18 08:32:06 +01:00
|
|
|
{
|
|
|
|
|
private readonly RequestDelegate _next;
|
2020-02-24 10:51:48 +01:00
|
|
|
public UmbracoWebsiteMiddleware(RequestDelegate next)
|
2020-02-18 08:32:06 +01:00
|
|
|
{
|
|
|
|
|
_next = next;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task InvokeAsync(HttpContext context)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
// Call the next delegate/middleware in the pipeline
|
|
|
|
|
await _next(context);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|