Ejemplo n.º 1
0
        private static TypeBasedRouterConfigurationBuilder MapEvents(this TypeBasedRouterConfigurationBuilder config, string destinationAddress)
        {
            foreach (var evt in _events)
            {
                config.Map(evt, destinationAddress);
            }

            return(config);
        }
Ejemplo n.º 2
0
        private static TypeBasedRouterConfigurationBuilder MapCommands(this TypeBasedRouterConfigurationBuilder config, string destinationAddress)
        {
            foreach (var cmd in _commands)
            {
                config.Map(cmd, destinationAddress);
            }

            return(config);
        }