File tree Expand file tree Collapse file tree 5 files changed +14
-3
lines changed
AfterBlazorServerSide/Shared Expand file tree Collapse file tree 5 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 88 </ItemGroup >
99
1010 <PropertyGroup >
11- <BlazorWebAssemblyVersion >3.2.0-preview3.20168.3 </BlazorWebAssemblyVersion >
11+ <BlazorWebAssemblyVersion >3.2.0-preview4.20210.8 </BlazorWebAssemblyVersion >
1212 </PropertyGroup >
1313
1414</Project >
Original file line number Diff line number Diff line change 1616 </ItemGroup >
1717
1818 <ItemGroup >
19+ <PackageReference Include =" System.Net.Http.Json" Version =" 3.2.0-preview5.20210.3" />
1920 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" $(BlazorWebAssemblyVersion)" />
2021 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.Build" Version =" $(BlazorWebAssemblyVersion)" PrivateAssets =" all" />
21- <PackageReference Include =" Microsoft.AspNetCore.Blazor.HttpClient" Version =" $(BlazorWebAssemblyVersion)" />
2222 <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" $(BlazorWebAssemblyVersion)" PrivateAssets =" all" />
2323 <PackageReference Include =" Microsoft.CSharp" Version =" 4.7.0" />
2424 <PackageReference Include =" Microsoft.JSInterop.WebAssembly" Version =" $(BlazorWebAssemblyVersion)" />
Original file line number Diff line number Diff line change 22using Microsoft . AspNetCore . Components . Authorization ;
33using Microsoft . Extensions . DependencyInjection ;
44using System . Threading . Tasks ;
5+ using System . Net . Http ;
6+ using System ;
57
68namespace AfterBlazorClientSide
79{
@@ -14,7 +16,9 @@ public static async Task Main(string[] args)
1416 builder . RootComponents . Add < App > ( "app" ) ;
1517
1618 builder . Services . AddScoped < AuthenticationStateProvider , StaticAuthStateProvider > ( ) ;
17- builder . Services . AddBaseAddressHttpClient ( ) ;
19+ builder . Services . AddSingleton (
20+ new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) }
21+ ) ;
1822
1923 await builder . Build ( ) . RunAsync ( ) ;
2024
Original file line number Diff line number Diff line change 11@using System .Net .Http
2+ @using System .Net .Http .Json
23@using Microsoft .AspNetCore .Components .Forms
34@using Microsoft .AspNetCore .Components .Routing
45@using Microsoft .AspNetCore .Components .Web
Original file line number Diff line number Diff line change 3434 <TreeNode NavigateUrl =" /ControlSamples/DataList/RepeatColumns" Text =" Repeat Columns" />
3535 </TreeNode >
3636
37+ <TreeNode Text =" GridView" NavigateUrl =" /ControlSamples/GridView" Expanded =" true" >
38+ <TreeNode NavigateUrl =" /ControlSamples/GridView/AutoGeneratedColumns" Text =" Autogenerated Columns" />
39+ <TreeNode NavigateUrl =" /ControlSamples/GridView/TemplateFields" Text =" Template Fields" />
40+ <TreeNode NavigateUrl =" /ControlSamples/GridView/BindAttribute" Text =" BindAttribute" />
41+ </TreeNode >
42+
3743 <TreeNode Text =" ListView" NavigateUrl =" /ControlSamples/ListView" Expanded =" false" >
3844 <TreeNode NavigateUrl =" /ControlSamples/ListView" Text =" Simple List View" ></TreeNode >
3945 <TreeNode NavigateUrl =" ./ControlSamples/ListView/ModelBinding" Text =" ModelBinding Sample" ></TreeNode >
You can’t perform that action at this time.
0 commit comments