PWA Fundvelo der Caritas.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

FetchData.razor.g.cs 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // <auto-generated/>
  2. #pragma warning disable 1591
  3. #pragma warning disable 0414
  4. #pragma warning disable 0649
  5. #pragma warning disable 0169
  6. namespace CaritasPWA.Pages
  7. {
  8. #line hidden
  9. using System;
  10. using System.Collections.Generic;
  11. using System.Linq;
  12. using System.Threading.Tasks;
  13. using Microsoft.AspNetCore.Components;
  14. #nullable restore
  15. #line 1 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  16. using System.Net.Http;
  17. #line default
  18. #line hidden
  19. #nullable disable
  20. #nullable restore
  21. #line 2 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  22. using System.Net.Http.Json;
  23. #line default
  24. #line hidden
  25. #nullable disable
  26. #nullable restore
  27. #line 3 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  28. using Microsoft.AspNetCore.Components.Forms;
  29. #line default
  30. #line hidden
  31. #nullable disable
  32. #nullable restore
  33. #line 4 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  34. using Microsoft.AspNetCore.Components.Routing;
  35. #line default
  36. #line hidden
  37. #nullable disable
  38. #nullable restore
  39. #line 5 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  40. using Microsoft.AspNetCore.Components.Web;
  41. #line default
  42. #line hidden
  43. #nullable disable
  44. #nullable restore
  45. #line 6 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  46. using Microsoft.AspNetCore.Components.WebAssembly.Http;
  47. #line default
  48. #line hidden
  49. #nullable disable
  50. #nullable restore
  51. #line 7 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  52. using Microsoft.JSInterop;
  53. #line default
  54. #line hidden
  55. #nullable disable
  56. #nullable restore
  57. #line 8 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  58. using CaritasPWA;
  59. #line default
  60. #line hidden
  61. #nullable disable
  62. #nullable restore
  63. #line 9 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  64. using CaritasPWA.Shared;
  65. #line default
  66. #line hidden
  67. #nullable disable
  68. #nullable restore
  69. #line 10 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  70. using MatBlazor;
  71. #line default
  72. #line hidden
  73. #nullable disable
  74. [Microsoft.AspNetCore.Components.RouteAttribute("/fetchdata")]
  75. public partial class FetchData : Microsoft.AspNetCore.Components.ComponentBase
  76. {
  77. #pragma warning disable 1998
  78. protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
  79. {
  80. }
  81. #pragma warning restore 1998
  82. #nullable restore
  83. #line 37 "D:\Work\Caritas\CaritasPWA\Pages\FetchData.razor"
  84. private WeatherForecast[] forecasts;
  85. protected override async Task OnInitializedAsync()
  86. {
  87. forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
  88. }
  89. public class WeatherForecast
  90. {
  91. public DateTime Date { get; set; }
  92. public int TemperatureC { get; set; }
  93. public string Summary { get; set; }
  94. public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
  95. }
  96. #line default
  97. #line hidden
  98. #nullable disable
  99. [global::Microsoft.AspNetCore.Components.InjectAttribute] private HttpClient Http { get; set; }
  100. }
  101. }
  102. #pragma warning restore 1591