Ejemplo n.º 1
0
        private IDomainEvent ConvertToDomainEvent(ResolvedEvent @event)
        {
            if (!settings.EventTypes.ContainsKey(@event.Event.EventType))
            {
                return(null);
            }

            return(jsonByteConverter.Deserialize(@event.Event.Data, settings.EventTypes[@event.Event.EventType]) as IDomainEvent);
        }
        private IDomainEvent ConvertToDomainEvent(ResolvedEvent @event)
        {
            var eventType = _eventStoreSettings.EventTypes[@event.Event.EventType];

            return(_jsonByteConverter.Deserialize(@event.Event.Data, eventType) as IDomainEvent);
        }