Migrating ActionResults and a dependency class
This commit is contained in:
29
src/Umbraco.Web.Website/RouteDefinition.cs
Normal file
29
src/Umbraco.Web.Website/RouteDefinition.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Umbraco.Web.Routing;
|
||||
|
||||
namespace Umbraco.Web.Website
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the data required to route to a specific controller/action during an Umbraco request
|
||||
/// </summary>
|
||||
public class RouteDefinition
|
||||
{
|
||||
public string ControllerName { get; set; }
|
||||
public string ActionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Controller type found for routing to
|
||||
/// </summary>
|
||||
public Type ControllerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Everything related to the current content request including the requested content
|
||||
/// </summary>
|
||||
public IPublishedRequest PublishedRequest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets/sets whether the current request has a hijacked route/user controller routed for it
|
||||
/// </summary>
|
||||
public bool HasHijackedRoute { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user