C# Class Rebel.Cms.Web.Mvc.Areas.RebelAreaRegistration

Responsible for registering the Rebel Area and all of it's affiliated routes
Inheritance: System.Web.Mvc.AreaRegistration
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
RebelAreaRegistration ( IRebelApplicationContext applicationContext, ComponentRegistrations componentRegistrar ) : System

Constructor using a specific RebelSettings object

RegisterArea ( System.Web.Mvc.AreaRegistrationContext context ) : void

Creates the routes for the back office area

Private Methods

Method Description
MapRouteBackOffice ( RouteCollection routes ) : void

The standard routes for the back office main pages

MapRouteEditors ( RouteCollection routes, IEnumerable editorControllers ) : void

Creates the routing rules for the editors

MapRouteSurfaceControllers ( RouteCollection routes, IEnumerable surfaceControllers ) : void

This maps locally declared (non-package) surface controllers so that they are routing through the Rebel back office path /Rebel (or what is defined in config)

MapRouteTrees ( RouteCollection routes, IEnumerable treeControllers ) : void

Create the routes to handle tree requests

Method Details

RebelAreaRegistration() public method

Constructor using a specific RebelSettings object
public RebelAreaRegistration ( IRebelApplicationContext applicationContext, ComponentRegistrations componentRegistrar ) : System
applicationContext IRebelApplicationContext
componentRegistrar Rebel.Cms.Web.DependencyManagement.ComponentRegistrations
return System

RegisterArea() public method

Creates the routes for the back office area
public RegisterArea ( System.Web.Mvc.AreaRegistrationContext context ) : void
context System.Web.Mvc.AreaRegistrationContext
return void