I have been looking for a way to register a factory class in autofac using XmlConfiguration but the documentation seems a bit slim.
What I want to accomplish is to do the following in my configuration instead:
builder.Register(c => MyFactory.GetMyObject()).As<IMyObject>();
Are there any good way of doing this?