Apologies if this has been asked before:
I've been following this post:
http://avingtonsolutions.com/blog/post/2008/08/02/Uisng-Unity-with-a-WCF-Service.aspx and its great for instantiating my services and injecting their dependencies.
However, one of my dependencies is contextual - i.e. I will be passed a "key" in my service method which will then be used to return the correct instantiation of the concrete object. Since the "key" is only passed in the method,
not in the constructor, how can I resolve this object?
Request.AccountKey = "1234"
When I resolve my MyController...how do I pass it the correct IAccount object at runtime...so that I have a different controller per method call AND the correct "account" passed into each MyController?
Thanks for any assistance;