Method | Description | |
---|---|---|
CanHandle ( System.Web.Routing.RequestContext request ) : bool |
This factory will attempt to return the controller only if the PluginManager is using the CodeGen folder andthe route values contains both the 'Namespaces' and 'rebel' data tokens in its route values.
|
|
PluginControllerFactory ( IRebelApplicationContext applicationContext ) : System |
Method | Description | |
---|---|---|
GetControllerType ( System.Web.Routing.RequestContext requestContext, string controllerName ) : |
Returns the controller type for the specified controllerName based on the RouteData specified. Since this factory should only fire for plugin controllers, we just check for the Namespace token and look it up in our cache, if it doesn't exist there, we'll check the BuildManager since we know we've registered it with that on pre app init. If nothing is found, then we'll just revert to using the base classes implementation. |
public CanHandle ( System.Web.Routing.RequestContext request ) : bool | ||
request | System.Web.Routing.RequestContext | |
return | bool |
protected GetControllerType ( System.Web.Routing.RequestContext requestContext, string controllerName ) : |
||
requestContext | System.Web.Routing.RequestContext | |
controllerName | string | |
return |
public PluginControllerFactory ( IRebelApplicationContext applicationContext ) : System | ||
applicationContext | IRebelApplicationContext | |
return | System |