|
#pragma checksum "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\Pages\Home.razor" "{8829d00f-11b8-4213-878b-770e8597ac16}" "9f7ed0cba31d660fb8a9cec6df289226da395a34abee6aa48bfc871f8a9fc5b3"
// <auto-generated/>
#pragma warning disable 1591
namespace Publishers.Frontend.Components.Pages
{
#line default
using global::System;
using global::System.Collections.Generic;
using global::System.Linq;
using global::System.Threading.Tasks;
using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,23) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using System.Net.Http
#nullable disable
;
#nullable restore
#line (2,2)-(2,28) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using System.Net.Http.Json
#nullable disable
;
#nullable restore
#line (3,2)-(3,45) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms
#nullable disable
;
#nullable restore
#line (4,2)-(4,47) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing
#nullable disable
;
#nullable restore
#line (5,2)-(5,43) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Web
#nullable disable
;
#nullable restore
#line (6,2)-(6,61) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using static Microsoft.AspNetCore.Components.Web.RenderMode
#nullable disable
;
#nullable restore
#line (7,2)-(7,58) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Web.Virtualization
#nullable disable
;
#nullable restore
#line (8,2)-(8,27) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using Microsoft.JSInterop
#nullable disable
;
#nullable restore
#line (9,2)-(9,27) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using Publishers.Frontend
#nullable disable
;
#nullable restore
#line (10,2)-(10,38) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\_Imports.razor"
using Publishers.Frontend.Components
#nullable disable
;
#line default
#line hidden
[global::Microsoft.AspNetCore.Components.RouteAttribute(
// language=Route,Component
#nullable restore
#line (1,7)-(1,10) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\Pages\Home.razor"
"/"
#line default
#line hidden
#nullable disable
)]
[global::Publishers.Frontend.Components.Pages.Home.__PrivateComponentRenderModeAttribute]
#nullable restore
public partial class Home : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.OpenComponent<global::Microsoft.AspNetCore.Components.Web.PageTitle>(0);
__builder.AddAttribute(1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
__builder2.AddContent(2, "Home");
}
));
__builder.CloseComponent();
__builder.AddMarkupContent(3, "\r\n\r\n");
__builder.OpenElement(4, "button");
__builder.AddAttribute(5, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#nullable restore
#line (7,19)-(7,30) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\Pages\Home.razor"
SendRequest
#line default
#line hidden
#nullable disable
));
__builder.AddContent(6, "Fetch data");
__builder.CloseElement();
__builder.AddMarkupContent(7, "\r\n");
__builder.OpenElement(8, "textarea");
#nullable restore
#line (8,12)-(8,23) 24 "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\Pages\Home.razor"
__builder.AddContent(9, getResponse
#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
}
#pragma warning restore 1998
#nullable restore
#line (11,2)-(18,1) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\Pages\Home.razor"
private string? getResponse = "";
private async Task SendRequest()
{
getResponse = await client.GetDataAsync();
}
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Components.InjectAttribute] private
#nullable restore
#line (2,9)-(2,18) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\Pages\Home.razor"
ApiClient
#line default
#line hidden
#nullable disable
#nullable restore
#line (2,19)-(2,25) "D:\a\_work\1\s\playground\publishers\Publishers.Frontend\Components\Pages\Home.razor"
client
#line default
#line hidden
#nullable disable
{ get; set; }
= default!;
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
{
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => InteractiveServer
;
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
}
}
}
#pragma warning restore 1591
|