-
Notifications
You must be signed in to change notification settings - Fork 3
/
MiddlewareCore.cs
27 lines (25 loc) · 943 Bytes
/
MiddlewareCore.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Microsoft.AspNetCore.Http;
namespace Cuemon.AspNetCore.Infrastructure
{
/// <summary>
/// Provides a base-class for middleware implementation in ASP.NET Core.
/// This API supports the product infrastructure and is not intended to be used directly from your code.
/// </summary>
public abstract class MiddlewareCore
{
/// <summary>
/// Initializes a new instance of the <see cref="Middleware"/> class.
/// </summary>
/// <param name="next">The delegate of the request pipeline to invoke.</param>
internal MiddlewareCore(RequestDelegate next)
{
Validator.ThrowIfNull(next);
Next = next;
}
/// <summary>
/// Gets the delegate of the request pipeline to invoke.
/// </summary>
/// <value>The delegate of the request pipeline to invoke.</value>
protected RequestDelegate Next { get; }
}
}