For custom controller hijacking as mentioned umbraco documentation here Custom controllers (Hijacking Umbraco Routes)
I am not unable to find the namespace and assembly for the class mentioned as DefaultRenderMvcControllerResolver
for the code snippet below,
public class MyApplication : UmbracoApplication
{
protected override void OnApplicationStarting(object sender, EventArgs e)
{
DefaultRenderMvcControllerResolver.Current.SetDefaultControllerType(typeof(MyCustomUmbracoController));
base.OnApplicationStarting(sender, e);
}
}
The namespace is Umbraco.Web.Mvc
but only available from v6.1 onwards I think.
All the code is open source and available at https://github.com/umbraco/Umbraco-CMS
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.