File: TestComponents_DoubleRenderingStreamingAsyncComponent_razor.g.cs
Project: src\src\Components\Endpoints\test\Microsoft.AspNetCore.Components.Endpoints.Tests.csproj (Microsoft.AspNetCore.Components.Endpoints.Tests)
#pragma checksum "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5e2bb4d684f02750e4dcf3d0c40d8fecd8e990ff98d21103c34814b5e0f3554b"
// <auto-generated/>
#pragma warning disable 1591
namespace Microsoft.AspNetCore.Components.Endpoints.Tests.TestComponents
{
    #line default
    using global::System;
    using global::System.Collections.Generic;
    using global::System.Linq;
    using global::System.Threading.Tasks;
    using global::Microsoft.AspNetCore.Components;
    #line default
    #line hidden
#nullable restore
#line (1,12)-(1,29) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor"
[StreamRendering]
 
#line default
#line hidden
#nullable disable
 
    #nullable restore
    public partial class DoubleRenderingStreamingAsyncComponent : global::Microsoft.AspNetCore.Components.ComponentBase
    #nullable disable
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#nullable restore
#line (2,2)-(4,5) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor"
if (loaded)
{
    
 
#line default
#line hidden
#nullable disable
 
            __builder.AddContent(0, "Loaded");
#nullable restore
#line (4,24)-(5,5) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor"
 
    
 
#line default
#line hidden
#nullable disable
 
#nullable restore
#line (5,6)-(9,6) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor"
if (renderCount++ == 0)
    {
        // Perform a further synchronous render just to show we deduplicate it in the SSR output
        StateHasChanged();
    }
 
#line default
#line hidden
#nullable disable
 
#nullable restore
#line (9,6)-(13,5) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor"
 
}
else
{
    
 
#line default
#line hidden
#nullable disable
 
            __builder.AddContent(1, "Loading...");
#nullable restore
#line (13,28)-(15,1) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor"
 
}
 
#line default
#line hidden
#nullable disable
 
        }
        #pragma warning restore 1998
#nullable restore
#line (15,8)-(25,1) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\DoubleRenderingStreamingAsyncComponent.razor"
 
    [Parameter] public Task WaitFor { get; set; }
 
    bool loaded;
    int renderCount = 0;
    protected override async Task OnInitializedAsync()
    {
        await WaitFor;
        loaded = true;
    }
 
#line default
#line hidden
#nullable disable
 
    }
}
#pragma warning restore 1591