mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-30 08:42:51 +08:00
24 lines
599 B
C#
24 lines
599 B
C#
namespace Ocelot.Library.Middleware
|
|
{
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Repository;
|
|
|
|
public class ClaimsParserMiddleware : OcelotMiddleware
|
|
{
|
|
private readonly RequestDelegate _next;
|
|
|
|
public ClaimsParserMiddleware(RequestDelegate next, IScopedRequestDataRepository scopedRequestDataRepository)
|
|
: base(scopedRequestDataRepository)
|
|
{
|
|
_next = next;
|
|
}
|
|
|
|
public async Task Invoke(HttpContext context)
|
|
{
|
|
|
|
await _next.Invoke(context);
|
|
}
|
|
}
|
|
}
|