Пример #1
0
 public EventHandlerAudit(EventDescriptor rawEvent, DateTime processed,EventHandlerAuditResult result, string message)
 {
     Id = Uuid.NewGuid();
     CreatedUtcDate = DateTime.UtcNow;
     Seq = rawEvent.Seq;
     EventId = rawEvent.EventId;
     EventProcessedUtcDate = processed;
     Result = result;
     Message = message;
 }
Пример #2
0
 public SequencedEvent(EventDescriptor @event)
 {
     Sequence = @event.Seq;
     Event = @event;
     AggregateId = Event.Header.AggregateId;
 }
 public void Transfer(EventDescriptor @event)
 {
     var currentSession = _sessionFactory.GetCurrentSession();
     currentSession.Save(@event.ToErrorEventDescriptor());
     currentSession.Delete(@event);
 }