private static void RegisterCoreServices() { Ioc.RegisterSingle(TypeRegistration.For <SimpleSynchronousEventDispatcher, IEventDispatcher>(Lifetime.PerLifetimeScope)); Ioc.RegisterAllTypesDerivedFrom( typeof(IEventHandler <>), implementationType => TypeRegistration.AsImplementedInterfaces(implementationType, Lifetime.PerLifetimeScope)); }