30 references to RenderAsyncDelegate
Microsoft.AspNetCore.Mvc.Razor (12)
IRazorPage.cs (2)
47
IDictionary<string,
RenderAsyncDelegate
> PreviousSectionWriters { get; set; }
52
IDictionary<string,
RenderAsyncDelegate
> SectionWriters { get; }
RazorPage.cs (3)
54
/// <param name="section">The <see cref="
RenderAsyncDelegate
"/> to execute when rendering the section.</param>
55
public override void DefineSection(string name,
RenderAsyncDelegate
section)
161
if (PreviousSectionWriters.TryGetValue(sectionName, out
var
renderDelegate))
RazorPageBase.cs (7)
28
private readonly IDictionary<string,
RenderAsyncDelegate
> _sectionWriters = new Dictionary<string,
RenderAsyncDelegate
>(StringComparer.OrdinalIgnoreCase);
41
private IDictionary<string,
RenderAsyncDelegate
> _previousSectionWriters = default!;
77
public IDictionary<string,
RenderAsyncDelegate
> SectionWriters => _sectionWriters;
102
public IDictionary<string,
RenderAsyncDelegate
> PreviousSectionWriters
379
/// <param name="section">The <see cref="
RenderAsyncDelegate
"/> to execute when rendering the section.</param>
380
public virtual void DefineSection(string name,
RenderAsyncDelegate
section)
Microsoft.AspNetCore.Mvc.Razor.Test (16)
RazorPageTest.cs (15)
27
private readonly
RenderAsyncDelegate
_nullRenderAsyncDelegate = () => Task.FromResult(0);
424
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
464
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
487
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
524
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
548
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
572
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
596
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
620
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
697
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
722
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
745
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
770
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
804
page.PreviousSectionWriters = new Dictionary<string,
RenderAsyncDelegate
>
920
var
renderAsyncDelegate = page.SectionWriters["test-section"];
RazorViewTest.cs (1)
24
private readonly
RenderAsyncDelegate
_nullRenderAsyncDelegate = async () => { };
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\RazorPageAdapter.cs (2)
67
public IDictionary<string,
RenderAsyncDelegate
> PreviousSectionWriters
74
public IDictionary<string,
RenderAsyncDelegate
> SectionWriters => _page.SectionWriters;