tags:

views:

86

answers:

0

I am using Structuremap in ASP.NET project and I am using

ObjectFactory.Profile = "Mock";

to force the use of a mock further down the system and that all works out fine.

But changing the profile, Will that change of profile affect all requests to my system or only for the current request?

How can I change the profile in structuremap for the current HTTPContext/request only? Is that possible?