public interface IInterface1 { } public interface IInterface2 { } public class MyClass : IInterface1, IInterface2 { } ... ObjectFactory.Initialize(x => {
I would register the MyClass itself and then pull that out of the context for the Use statements of the individual interfaces.
ForSingletonOf().Use(); For().Use(ctx => ctx.GetInstance()); For().Use(ctx => ctx.GetInstance());