public static void Raise <T>(T evento) where T : IDomainEvent { var handles = SimpleInjectorContainer.GetContainer().GetAllInstances <IHandle <T> >(); foreach (var handle in handles) { handle.Handle(evento); } }
public static void Raise <T>(T evento) where T : IDomainEvent { var handles = SimpleInjectorContainer.GetContainer().GetAllInstances <IHandle <T> >(); foreach (var handle in handles) { handle.Handle(evento); } }