Process identifier

0

I am working in MVC under ASP.Net.

Do I have a different process number for each "request" I make?

I would need to identify each request that is made to the server from the browser.

I do not use System.Diagnostics.Process.GetCurrentProcess().Id because it always returns the same number, when I make 2 requests from two different tabs.

    
asked by Leonardo 14.03.2017 в 21:14
source

1 answer

0

According to the documentation of HttpContext.Items this is by request so in the Global.Asax you could add code to store a Guid and consume it later.

HttpContext.Current.Items["__IdProceso"] = Guid.NewGuid();
    
answered by 14.10.2017 в 00:15