public void Queue <T>(IEnumerable <T> events) where T : IDomainEvent { if (GlobalEventStore == null) { GlobalEventStore = Locator.Resolve <GlobalEventStore>(); } foreach (var e in events) { GlobalEventStore.Queue(e); } }
public void Queue <TEvent>(TEvent domainEvent) where TEvent : IDomainEvent { GlobalStore.Queue(domainEvent); }