private void Awake() { eventSourcing = new EventSourcing(); OnAwaked(); RegisterEvents(); InitializeView(); }
public void Inicijalizuj() { ICQRSRead read = new CQRSRead(); ICQRSWrite write = new CQRSWrite(); IEventSourcing es = new EventSourcing(read, write); IAmbassador ambassador = new Ambassador(es); _readWrite = new ReadWrite(); IUser iu = new User(ambassador); }
public void Save <T>(T theEvent) where T : Event { var eventSource = new EventSourcing { Action = typeof(T).Name, AggregateId = "", SagaId = theEvent.SagaId, Body = JsonConvert.SerializeObject(theEvent), TimeStamp = DateTime.Now }; _eventSourcingRepository.Store(eventSource); }
public void Store(EventSourcing eventSourcing) { _repository.EventsSource.Add(eventSourcing); _repository.SaveChanges(); }
public void Initialize(EventSourcing eventSourcing) { EventSource = eventSourcing; }
internal void SetEventSourcing(EventSourcing eventSourcing) { EventSourcing = eventSourcing; OnUpdateEventSourcing(); }
private Flow <IRequest, Response, NotUsed> Processor(string emitterId) => EventSourcing.Create(emitterId, 0, RequestHandler, EventHandler).Join(_eventLog.Flow <IEvent>(emitterId));
private Flow <IRequest, Response, NotUsed> Processor(IEnumerable <Emitted <IEvent> > replay = null) => EventSourcing.Create(EmitterId, 0, RequestHandler, EventHandler).Join(TestEventLog(replay));