Files
mixtape/zero.Core/Routing/IPageUrlResolver.cs
T

24 lines
498 B
C#
Raw Normal View History

2020-10-11 12:22:31 +02:00
using System;
using System.Collections.Generic;
2020-10-12 00:20:56 +02:00
using System.Linq;
2020-10-11 12:22:31 +02:00
using System.Text;
2020-10-22 00:32:44 +02:00
using System.Threading.Tasks;
2020-10-12 00:20:56 +02:00
using zero.Core.Api;
using zero.Core.Entities;
2020-10-11 12:22:31 +02:00
namespace zero.Core.Routing
{
2020-10-12 12:00:30 +02:00
public interface IPageUrlResolver
2020-10-11 12:22:31 +02:00
{
2020-10-22 00:32:44 +02:00
/// <summary>
/// Get URL for a page
/// </summary>
Task<string> GetUrl(IPage page);
2020-10-12 00:20:56 +02:00
/// <summary>
/// Get URL for a page
/// </summary>
2020-10-12 12:00:30 +02:00
UrlInfo GetUrl(IApplicationContext context, IPage page, IEnumerable<IPage> parents);
2020-10-11 12:22:31 +02:00
}
}