Files
Umbraco-CMS/src/Umbraco.Web/Routing/IContentFinder.cs
2018-11-22 14:05:51 +00:00

17 lines
752 B
C#

namespace Umbraco.Web.Routing
{
/// <summary>
/// Provides a method to try to find and assign an Umbraco document to a <c>PublishedContentRequest</c>.
/// </summary>
public interface IContentFinder
{
/// <summary>
/// Tries to find and assign an Umbraco document to a <c>PublishedContentRequest</c>.
/// </summary>
/// <param name="frequest">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 or anything else on the document request, although that is not required.</remarks>
bool TryFindContent(PublishedRequest frequest);
}
}