Which method I should track to know a new request comes into .net core application

438 Views Asked by At

I'm implementing profiler to track http requests coming to .net core applications hosted in IIS. I'm using coreclr profiling api to hook method enter/exit.

Which method I should track to know a new http request coming into my application.

1

There are 1 best solutions below

4
Afshar On

Create a middle ware and configure ASP.NET Core to use it. It should receive requests, process it, then pass it along with the pipeline.

For more information see here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-2.2