2012-08-07 21:40:34 +06:00
|
|
|
using System.Web.Mvc;
|
2012-09-25 13:09:59 +07:00
|
|
|
using Umbraco.Web.Routing;
|
2012-08-07 21:40:34 +06:00
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Mvc
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents the data required to route to a specific controller/action during an Umbraco request
|
|
|
|
|
/// </summary>
|
2012-09-07 08:28:18 +07:00
|
|
|
internal class RouteDefinition
|
2012-08-07 21:40:34 +06:00
|
|
|
{
|
|
|
|
|
public string ControllerName { get; set; }
|
|
|
|
|
public string ActionName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The Controller instance found for routing to
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ControllerBase Controller { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The current RenderModel found for the request
|
|
|
|
|
/// </summary>
|
2012-10-02 01:40:19 +05:00
|
|
|
public PublishedContentRequest PublishedContentRequest { get; set; }
|
2012-09-07 08:28:18 +07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets/sets whether the current request has a hijacked route/user controller routed for it
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool HasHijackedRoute { get; set; }
|
2012-08-07 21:40:34 +06:00
|
|
|
}
|
|
|
|
|
}
|