I am having this problem.
I have integrated structuremap with wcf like it is described here:
http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/07/29/integrating-structuremap-with-wcf.aspx
the problem is that I am having classes which have constructor parameters like userId and applicationId that I must pass in order structuremap can create them.
How to do this?
How can i pass these parameters on each wcf call?
When you create your instance provider, get those parameters out of your message during the call to GetInstance:
This assumes your Message body is a defined data contract type (in my example, it’s a type named ‘YourDataContract’).