Esempio n. 1
0
        private LinkedList <IAggregateEvent> MapEventsToTypes(List <Core.Event> list)
        {
            var events = new LinkedList <IAggregateEvent>();

            list.ForEach(x =>
            {
                var type = Type.GetType(x.EventType, AssemblyResolver, TypeResolver);

                events.AddLast(serialiser.DeSerialiseAs(type, x.EventData) as IAggregateEvent);
            });

            return(events);
        }