In Autofac how do I change the instance that is registered after Build has been called?

Viewed 15760

So lets say i have this code

var builder = new ContainerBuilder();
builder.RegisterInstance(new MyType());
var container = builder.Build();

Then some time later I want to change the instance of MyType for all future resolves that are called on container.

3 Answers
Related