Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created April 13, 2024 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wullemsb/226bce4915f542b28d8ff709673a592c to your computer and use it in GitHub Desktop.
Save wullemsb/226bce4915f542b28d8ff709673a592c to your computer and use it in GitHub Desktop.
public class RequestResponseLoggingMiddleware: IMiddleware
{
private readonly IApiLoggingService _apiLoggingService;
public RequestResponseLoggingMiddleware(IApiLoggingService apiLoggingService)
{
_apiLoggingService=apiLoggingService;
}
public async Task InvokeAsync(HttpContext context, RequestDelegate next)
{
// Call the next delegate/middleware in the pipeline.
await next(context);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment