Example #1
0
        private void Awake()
        {
            eventSourcing = new EventSourcing();

            Onļ¼”waked();
            RegisterEvents();
            InitializeView();
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
 public void Store(EventSourcing eventSourcing)
 {
     _repository.EventsSource.Add(eventSourcing);
     _repository.SaveChanges();
 }
Example #5
0
 public void Initialize(EventSourcing eventSourcing)
 {
     EventSource = eventSourcing;
 }
Example #6
0
        internal void SetEventSourcing(EventSourcing eventSourcing)
        {
            EventSourcing = eventSourcing;

            OnUpdateEventSourcing();
        }
Example #7
0
 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));