예제 #1
0
 public void Add(ConcertProjection item)
 {
     lock (_object)
     {
         _concerts[item.Id] = item;
     }
 }
예제 #2
0
 public bool TryGetConcert(Guid id, out ConcertProjection concertProjection)
 {
     return(_concerts.TryGetValue(id, out concertProjection));
 }
예제 #3
0
        public void Project(ConcertCreatedEvent @event)
        {
            ConcertProjection concertProjection = new ConcertProjection(@event.ConcertId, @event.Title);

            _concerts.Add(concertProjection);
        }