Red Gate forums :: View topic - Async() calls end up with different value under profiler
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 8
ANTS Performance Profiler 8 forum

Async() calls end up with different value under profiler

Search in ANTS Performance Profiler 8 forum
Post new topic   Reply to topic
Jump to:  
Author Message
icelava



Joined: 21 Feb 2014
Posts: 11

PostPosted: Fri Feb 21, 2014 12:03 pm    Post subject: Async() calls end up with different value under profiler Reply with quote

I am trying out ANTS Performance Profiler 8.5 to help us determine the actual execution time of async methods, inclusive of the awaiting time spent for other simultaneous awaitable tasks.

Our WCF/IIS web service has always been functioning correctly, whereby within service operations we execute like

var tokenTask = repo.GetAsync(identity);
// identity is a long Int64
// ...
// ...

var resultObj = await tokenTask;

The value of identity is passed in via a custom HTTP request header, which it is able to pick up properly. But when value gets passed into GetAsync(), it ends up as something else. E.g. 4 becomes 2

This is very strange and I cannot comprehend what is going on that causes this? It works as expected (value 4 gets passed into method) when not operating under the profiler.
Back to top
View user's profile Send private message
icelava



Joined: 21 Feb 2014
Posts: 11

PostPosted: Sun Feb 23, 2014 12:49 pm    Post subject: Reply with quote

Hmmm, seems like the problem is due to the web application project using Visual Studio Development Server as the web server.

After changing to use IIS Express it seems to be proper now...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group