public void run()
 {
     var routes = Container.get_a<RoutingTable>();
     var commands = Container.Current.get_all<DiscreteCommand>();
     var factory = new WebCommandFactory();
     commands.each(x =>
                   routes.add(factory.create_from(x)));
 }
示例#2
0
        public void run()
        {
            var routes   = Container.get_a <RoutingTable>();
            var commands = Container.Current.get_all <DiscreteCommand>();
            var factory  = new WebCommandFactory();

            commands.each(x =>
                          routes.add(factory.create_from(x)));
        }