A
Alex
I have a WS that contains multiple classes and web methods. We need to keep
track of execution times. To do this, I created a class with two properties,
one of them is a unique "ThreadId" which is a simple random string. The
reason for this is that we need to keep track of execution times through all
methods. E.g. GetUser() calls a Login() method, and then calls the GetUser
data access method, then calls a DataSetToJSON method etc, so the theory is
that when we query the execution times, we can see the stack trace and group
it by the ThreadId.
The problem is that when we have multiple hits to the WS, the ThreadId is
being "shared" among different connections. I assumed that each new WS call
will get it's own ThreadId, but this is not the case.
How can I create this object containing the threadId for each specific
connection?
Thanks
track of execution times. To do this, I created a class with two properties,
one of them is a unique "ThreadId" which is a simple random string. The
reason for this is that we need to keep track of execution times through all
methods. E.g. GetUser() calls a Login() method, and then calls the GetUser
data access method, then calls a DataSetToJSON method etc, so the theory is
that when we query the execution times, we can see the stack trace and group
it by the ThreadId.
The problem is that when we have multiple hits to the WS, the ThreadId is
being "shared" among different connections. I assumed that each new WS call
will get it's own ThreadId, but this is not the case.
How can I create this object containing the threadId for each specific
connection?
Thanks