WatchDog icon indicating copy to clipboard operation
WatchDog copied to clipboard

UseWatchDog method stops middleware chain on not watchdog requests

Open jkune opened this issue 10 months ago • 1 comments

When using UseWatchDog() any later middleware used is not invoked

To Reproduce Use a dumb middleware after UseSwagger method.

app.Use(async (context, next) =>
{
    await next(context); // this is executed
});
app.UseWatchDog(...)
app.Use(async (context, next) =>
{
    await next(context); // this is NOT executed
});

Expected behavior The expected behaviour is that all middlewares are invoked in requests.

Details (please complete the following information):

  • Project Type: API
  • Framework Version NET 7
  • WatchDog Version 1.4.10
  • Database MSSQL

jkune avatar Apr 20 '24 14:04 jkune

Hi @jkune Your middleware should come before .UseWatchDog()

IzyPro avatar Apr 28 '24 12:04 IzyPro

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 29 '24 11:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 12 '24 11:06 github-actions[bot]