Пример #1
0
 public CreateEventHandler(IStartSessions <Guid, IHoldEventState> repository, IEventAggregate aggregate)
 {
     this.repository = repository;
     this.aggregate  = aggregate;
 }
Пример #2
0
 public bool TryGetEventAggregate(string aggregateId, out IEventAggregate aggregate)
 {
     try
     {
         m_Lock.EnterReadLock();
         return m_InternalStorage.TryGetValue(aggregateId, out aggregate);
     }
     finally
     {
         m_Lock.ExitReadLock();
     }
 }