Gets virtual page routing working, now just need to document.

This commit is contained in:
Shannon
2021-02-15 18:50:16 +11:00
parent 996c2b4277
commit 4f2682678e
18 changed files with 447 additions and 134 deletions

View File

@@ -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);
}
}