19 lines
483 B
C#
19 lines
483 B
C#
using LFlow.Middleware;
|
|
using Serilog;
|
|
|
|
namespace LFlow.UserManagement
|
|
{
|
|
public class UserMiddleware(ILogger logger) : IMiddleware
|
|
{
|
|
public int Priority => 1;
|
|
public async Task RunAsync(Microsoft.AspNetCore.Http.HttpContext context, Func<Task> next)
|
|
{
|
|
// Do something before
|
|
var path = context.Request.Path;
|
|
logger.Information(path);
|
|
await next();
|
|
// Do something after
|
|
}
|
|
}
|
|
}
|