public Task Consume(ConsumeContext <ConcertCreatedEvent> context) { var projector = _projectorFactory.CreateProjector(); projector.Project(context.Message); _eventStore.Add(context.Message); // posto se radi projekcija cim stigne event, ovde se samo smestaju eventi u dummy bazu return(Task.CompletedTask); }
public Task Consume(ConsumeContext <ConcertCreatedEvent> context) { var projector = _projectorFactory.CreateProjector(); projector.Project(context.Message); _eventStore.Add(context.Message); return(Task.CompletedTask); }