Ejemplo n.º 1
0
        public void RouteCollectionSetup()
        {
            var areaReg = new PublicAreaRegistration();
            var areaContext = new AreaRegistrationContext(areaReg.AreaName, RouteTable.Routes);
            areaReg.RegisterArea(areaContext);

            RouteConfig.RegisterRoutes(RouteTable.Routes);

            this.routeCollection = RouteTable.Routes;
        }
Ejemplo n.º 2
0
        private void ManualAreaRegistration()
        {
            var area1Reg = new AdmiralAreaRegistration();
            var area1Context = new AreaRegistrationContext(area1Reg.AreaName, RouteTable.Routes);
            area1Reg.RegisterArea(area1Context);

            var area2Reg = new ProfileAreaRegistration();
            var area2Context = new AreaRegistrationContext(area2Reg.AreaName, RouteTable.Routes);
            area2Reg.RegisterArea(area2Context);

            var area3Reg = new ShardAreaRegistration();
            var area3Context = new AreaRegistrationContext(area3Reg.AreaName, RouteTable.Routes);
            area3Reg.RegisterArea(area3Context);

            var area4Reg = new PlanetAreaRegistration();
            var area4Context = new AreaRegistrationContext(area4Reg.AreaName, RouteTable.Routes);
            area4Reg.RegisterArea(area4Context);

            var area5Reg = new PublicAreaRegistration();
            var area5Context = new AreaRegistrationContext(area5Reg.AreaName, RouteTable.Routes);
            area5Reg.RegisterArea(area5Context);
        }