Files
Umbraco-CMS/src/Umbraco.Web/Routing/IDocumentLastChanceLookup.cs
Shannon Deminick ffd14c839b After talks with morten and stephane, this renames
DocumentRequest -> PublishedContentRequest
2012-10-02 01:40:19 +05:00

16 lines
723 B
C#

namespace Umbraco.Web.Routing
{
/// <summary>
/// Provides a method to try to find an assign an Umbraco document to a <c>PublishedContentRequest</c> when everything else has failed.
/// </summary>
internal interface IDocumentLastChanceLookup
{
/// <summary>
/// Tries to find and assign an Umbraco document to a <c>PublishedContentRequest</c>.
/// </summary>
/// <param name="docRequest">The <c>PublishedContentRequest</c>.</param>
/// <returns>A value indicating whether an Umbraco document was found and assigned.</returns>
/// <remarks>Optionally, can also assign the template, although that is not required.</remarks>
bool TrySetDocument(PublishedContentRequest docRequest);
}
}