Esempio n. 1
0
        private void Publish <TEvent>(Command command) where TEvent : Event
        {
            var toPublish = mappingEngine.DynamicMap <TEvent>(command);

            bus.Publish(toPublish);
        }
        private void Publish(Start command)
        {
            var @event = mappingEngine.DynamicMap <Started>(command);

            bus.Publish(@event);
        }