Como hacerlo en el código se explica aquí: Unity Register two interfaces as one singleton¿Cómo puedo registrar un singleton en diferentes interfaces en unity, configuración XML?
_container.RegisterType<EventService>(new ContainerControlledLifetimeManager());
_container.RegisterType<IEventService, EventService>();
_container.RegisterType<IEventServiceInformation, EventService>();
bool singleton = ReferenceEquals(_container.Resolve<IEventService>(), _container.Resolve<IEventServiceInformation>());
Como hacerlo en la configuración XML?
y están ambas instancias de Event_Class va a ser la misma? – lukebuehler
Sí. Tus ReferenceEquals deberían funcionar. – ErnieL