How can we help you today? How can we help you today?
rzieroth

Activity overview

Latest activity by rzieroth

I have narrowd down that it has to do with passing complex objects as parameters to web api methods. I have a Web API Controller with 4 methods. The first two Post(int id) and Get(int id) get profile data. The next two do not get profile data. Get(MyObject inputObject) Post(MyObject inputObject) I start the Ants profile session using IIS original port and I have the Tools>Advanced Options>"Simplify very complex stack traces" and Avoid Profiling extremely trivial Method" unchecked. IE gets launched to my homepage controllers. Then I execute calls in fiddler and get 200 responses for all 4 calls with approrpiate response bodies. I then go back to ANTS and stop the profile. In the methods view I need to uncheck the "Hide insignificant methods" checkbox as these apis are very simple. I can see the data for api for the simple Post(int id) and Get(int id) but not the other two. Here is the controller class. public class TestComplexInputController : ApiController { public int Post(int id) { return id; } public int Get(int id) { return id; } public int Get(MyObject inputObject) { return inputObject.number; } public int Post(MyObject inputObject) { return inputObject.number; } public class MyObject { public int number; } } Here are the calls I make in fiddler ========================================================== GET http://mytest.mysite.com/PerformanceTraining/api/TestComplexInput/234 HTTP/1.1 User-Agent: Fiddler Host: mytest.mysite.com Pragma: no-cache Content-Type: application/json ========================================================== POST http://mytest.mysite.com/PerformanceTraining/api/TestComplexInput/1234 HTTP/1.1 User-Agent: Fiddler Host: mytest.mysite.com Pragma: no-cache Content-Type: application/json Content-Length: 0 ========================================================== POST http://mytest.mysite.com/PerformanceTraining/api/TestComplexInput HTTP/1.1 User-Agent: Fiddler Host: mytest.mysite.com Pragma: no-cache Content-Type: application/json Content-Length: 15 {"number":1234} ========================================================== GET http://mytest.mysite.com/PerformanceTraining/api/TestComplexInput HTTP/1.1 User-Agent: Fiddler Host: mytest.mysite.com Pragma: no-cache Content-Type: application/json Content-Length: 15 {"number":1234} / comments
I have narrowd down that it has to do with passing complex objects as parameters to web api methods. I have a Web API Controller with 4 methods. The first two Post(int id) and Get(int id) get profi...
0 votes
Web API methods not getting profile data
I have a Web API method which I am trying to profile. When I make the call to the web api I can see the profiler track the construction of the controller but the api method is not getting any prof...
2 followers 3 comments 0 votes