Files
Umbraco-CMS/src/Umbraco.Web/Routing/IDocumentLastChanceLookup.cs

16 lines
723 B
C#
Raw Normal View History

2012-07-22 14:01:18 -02:00
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.
2012-07-22 14:01:18 -02:00
/// </summary>
2012-07-27 04:39:43 -02:00
internal interface IDocumentLastChanceLookup
2012-07-22 14:01:18 -02:00
{
/// <summary>
/// Tries to find and assign an Umbraco document to a <c>PublishedContentRequest</c>.
2012-07-22 14:01:18 -02:00
/// </summary>
/// <param name="docRequest">The <c>PublishedContentRequest</c>.</param>
2012-07-22 14:01:18 -02:00
/// <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);
2012-07-22 14:01:18 -02:00
}
}