You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2 KiB

3 weeks ago
using System.Net.Http;
using System.Threading.Tasks;
namespace ReZero.SuperAPI
{
/// <summary>
/// Default UI usage, not applicable for Vue front-end and back-end separation
/// </summary>
public interface IUiManager
{
/// <summary>
/// Retrieves the HTML content asynchronously.
/// </summary>
/// <param name="fileContent">The content of the file.</param>
/// <param name="filePath">The path of the file.</param>
/// <param name="content">The HTTP context.</param>
/// <returns>The HTML content as a string.</returns>
Task<string> GetHtmlAsync(string fileContent, string filePath, Microsoft.AspNetCore.Http.HttpContext content);
Task<string> GetCustomPageHtmlAsync(string fileContent, string filePath, Microsoft.AspNetCore.Http.HttpContext content);
/// <summary>
/// Checks if the file content represents a master page.
/// </summary>
/// <param name="fileContent">The content of the file.</param>
/// <returns>True if the file content represents a master page, otherwise false.</returns>
bool IsMasterPage(string fileContent);
}
}