Пример #1
0
        /// <summary>
        /// Convert the data according to the filters
        /// </summary>
        /// <param name="converter"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        public static EventData Convert(this IEventDataConverter converter, IEventData data)
        {
            var eventData = data as EventData;

            if (eventData == null)
            {
                return(null);
            }

            return(converter.Convert(eventData));
        }
Пример #2
0
        /// <summary>
        /// handle the event
        /// </summary>
        /// <param name="event"></param>
        public void Handle(Event @event)
        {
            var data = _converter.Convert(@event.Data);

            _decorate.Handle(new Event(@event.PipelineId, data));
        }