IzyPro / WatchDog

WatchDog is a Realtime Message, Event, HTTP (Request & Response) and Exception logger and viewer for ASP.Net Core Web Apps and APIs. It allows developers log and view messages, events, http requests made to their web application and also exception caught during runtime in their web applications, all in Realtime.
MIT License
765 stars 115 forks source link

UseWatchDog method stops middleware chain on not watchdog requests #146

Closed jkune closed 4 months ago

jkune commented 6 months ago

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):

IzyPro commented 6 months ago

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

github-actions[bot] commented 5 months ago

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

github-actions[bot] commented 4 months ago

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