Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Attach partial routing to EPiServer init.
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))]
public class PartialRouteInitialization : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
RouteTable.Routes.RegisterPartialRouter(new NewsListPartialRouting());
}
public void Uninitialize(InitializationEngine context)
{
}
public void Preload(string[] parameters)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment