Is there any possibility to extend TestClient?

Topics: Web Api
Dec 5, 2011 at 12:10 PM

I am thinking about way of how to extend TestClient for diagnostic reasons. Is it possible and how?

For example, I've special generated header with time expiration, and I should manually add it to each request. 
I can add this header using handlers, but I do not want, because application behavior than will be different from deployed.

Coordinator
Dec 5, 2011 at 5:45 PM

The test client is not currently designed for extensibility, but we do have a couple of Issue Tracker items tracking adding this support. Feel free to vote them up or create a new one:

http://wcf.codeplex.com/workitem/77

http://wcf.codeplex.com/workitem/78

Daniel Roth

Dec 5, 2011 at 5:49 PM

Thanks. Voted. It's not a critical at all but might be very helpful for diagnostic/debug in some situations 

Coordinator
Dec 5, 2011 at 6:07 PM

I completely agree.

Daniel Roth