// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable disable

using System.Threading.Tasks;
using Microsoft.AspNetCore.Html;

namespace Microsoft.AspNetCore.Mvc.Razor;

public abstract class RazorPage : RazorPageBase
{
    public override void EndContext()
    {
    }

    public override void BeginContext(int position, int length, bool isLiteral)
    {
    }

    public override void EnsureRenderedBodyOrSections()
    {
    }

    protected virtual IHtmlContent RenderBody()
    {
        return null;
    }

    public HtmlString RenderSection(string name)
    {
        return null;
    }

    public HtmlString RenderSection(string name, bool required)
    {
        return null;
    }

    public Task<HtmlString> RenderSectionAsync(string name)
    {
        return null;
    }

    public Task<HtmlString> RenderSectionAsync(string name, bool required)
    {
        return null;
    }
}
