I\'m using StructureMap for my DI. Imagine I have a class that takes 1 argument like:
public class ProductProvider : IProductProvider { public ProductPr
I found the answer myself! Here is the solution:
ObjectFactory.With("connectionString").EqualTo(someValueAtRunTime).GetInstance();
Hope this helps others who have come across the same issue.