public CreateEventHandler(IStartSessions <Guid, IHoldEventState> repository, IEventAggregate aggregate) { this.repository = repository; this.aggregate = aggregate; }
public bool TryGetEventAggregate(string aggregateId, out IEventAggregate aggregate) { try { m_Lock.EnterReadLock(); return m_InternalStorage.TryGetValue(aggregateId, out aggregate); } finally { m_Lock.ExitReadLock(); } }