Exemplo n.º 1
0
        public static IPersistedEvent FromUnpersistedEvent(long globalSequence, UnpersistedEvent e)
        {
            var t = typeof(WrittenEvent <>).MakeGenericType(e.DomainEvent.GetType());

            return((IPersistedEvent)Activator.CreateInstance(t, globalSequence, e));
        }
Exemplo n.º 2
0
 public WrittenEvent(long globalSequence, UnpersistedEvent e)
 {
     this.GlobalSequence = globalSequence;
     this.e = e;
 }