Gets virtual page routing working, now just need to document.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Umbraco.Core.Models.PublishedContent;
|
||||
|
||||
namespace Umbraco.Web.Common.Extensions
|
||||
{
|
||||
internal class CustomRouteContentFinderDelegate
|
||||
{
|
||||
private readonly Func<HttpContext, IPublishedContent> _findContent;
|
||||
|
||||
public CustomRouteContentFinderDelegate(Func<HttpContext, IPublishedContent> findContent) => _findContent = findContent;
|
||||
|
||||
public IPublishedContent FindContent(HttpContext httpContext) => _findContent(httpContext);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user