|
#pragma checksum "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\StreamingAsyncLoadingComponent.razor" "{8829d00f-11b8-4213-878b-770e8597ac16}" "64790baf13a588e31ae43fcdff4da5a0bb9153aa5cf1868c883221e3d2b1bdcf"
// <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\StreamingAsyncLoadingComponent.razor"
[StreamRendering]
#line default
#line hidden
#nullable disable
#nullable restore
public partial class StreamingAsyncLoadingComponent : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.AddContent(0, "Loading task status: ");
#nullable restore
#line (2,23)-(2,41) 24 "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\StreamingAsyncLoadingComponent.razor"
__builder.AddContent(1, LoadingTask.Status
#line default
#line hidden
#nullable disable
);
}
#pragma warning restore 1998
#nullable restore
#line (3,8)-(11,1) "D:\a\_work\1\s\src\Components\Endpoints\test\TestComponents\StreamingAsyncLoadingComponent.razor"
[Parameter] public Task LoadingTask { get; set; }
protected override async Task OnInitializedAsync()
{
await LoadingTask;
await Task.Delay(100); // Doesn't strictly make any difference to the test, but clarifies that arbitrary async stuff could happen here
}
#line default
#line hidden
#nullable disable
}
}
#pragma warning restore 1591
|