예제 #1
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            RouteConfig.RegisterRoutes(RouteTable.Routes);

            IRouteContainer routeContainer = RouteContainer.Configure();
        }
예제 #2
0
 public ReflectorRouter()
 {
     //TODO: change this to RouteTree
     _route  = new RouteList <Type>();
     _binder = new AttributeHandlerMapBinder();
 }
        public void MyTestInitialize()
        {
            _dummyHandler = new MyDummyHandler();

            _container = new RouteList <IHandler>();
        }
        public void MyTestInitialize()
        {
            _dummyHandler = new MyDummyHandler();

            _container = new RouteList<IHandler>();
        }
예제 #5
0
        public static IRouteContainer Configure(Type routeContainerType, params object[] args)
        {
            IRouteContainer routeContainer = (IRouteContainer)Activator.CreateInstance(routeContainerType, args);

            return(routeContainer);
        }