File tree Expand file tree Collapse file tree 8 files changed +43
-2
lines changed
BlazorWebCSharp.1/Components
blazorweb-csharp-9/BlazorWeb-CSharp.Client Expand file tree Collapse file tree 8 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
2+ #if ( UseWebAssembly )
3+ using Microsoft . FluentUI . AspNetCore . Components ;
4+ #endif
25
36namespace BlazorWebCSharp . _1 . Client ;
47
@@ -12,8 +15,12 @@ static async Task Main(string[] args)
1215 builder . Services . AddAuthorizationCore ( ) ;
1316 builder . Services . AddCascadingAuthenticationState ( ) ;
1417 builder . Services . AddAuthenticationStateDeserialization ( ) ;
18+ #endif
1519
20+ #if ( UseWebAssembly )
21+ builder . Services . AddFluentUIComponents ( ) ;
1622#endif
23+
1724 await builder . Build ( ) . RunAsync ( ) ;
1825 }
1926}
Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
2+ #if ( UseWebAssembly )
3+ using Microsoft . FluentUI . AspNetCore . Components ;
4+ #endif
25
36var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
47
58#if ( IndividualLocalAuth )
69builder . Services . AddAuthorizationCore ( ) ;
710builder . Services . AddCascadingAuthenticationState ( ) ;
811builder . Services . AddAuthenticationStateDeserialization ( ) ;
12+ #endif
913
14+ #if ( UseWebAssembly )
15+ builder . Services . AddFluentUIComponents ( ) ;
1016#endif
17+
1118await builder . Build ( ) . RunAsync ( ) ;
Original file line number Diff line number Diff line change 1414@using BlazorWebCSharp ._1
1515@* #if (UseWebAssembly) -->
1616@using BlazorWebCSharp._1.Client
17- ##endif*@
18- @* #if (UseServer && UseWebAssembly && InteractiveAtRoot) -->
1917@using BlazorWebCSharp._1.Client.Layout
2018##endif*@
2119@using BlazorWebCSharp ._1 .Components
Original file line number Diff line number Diff line change 131131 "exclude" : [
132132 " BlazorWeb-CSharp/Components/Account/**" ,
133133 " BlazorWeb-CSharp/Data/**" ,
134+ " BlazorWeb-CSharp.Client/PersistentAuthenticationStateProvider.cs" ,
134135 " BlazorWeb-CSharp.Client/UserInfo.cs" ,
135136 " BlazorWeb-CSharp.Client/Pages/Auth.razor"
136137 ]
Original file line number Diff line number Diff line change 33using Microsoft . AspNetCore . Components . Authorization ;
44#endif
55using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
6+ #if ( UseWebAssembly )
7+ using Microsoft . FluentUI . AspNetCore . Components ;
8+ #endif
69
710namespace BlazorWeb_CSharp . Client ;
811
@@ -16,8 +19,12 @@ static async Task Main(string[] args)
1619 builder . Services . AddAuthorizationCore ( ) ;
1720 builder . Services . AddCascadingAuthenticationState ( ) ;
1821 builder . Services . AddSingleton < AuthenticationStateProvider , PersistentAuthenticationStateProvider > ( ) ;
22+ #endif
1923
24+ #if ( UseWebAssembly )
25+ builder . Services . AddFluentUIComponents ( ) ;
2026#endif
27+
2128 await builder . Build ( ) . RunAsync ( ) ;
2229 }
2330}
Original file line number Diff line number Diff line change 33using Microsoft . AspNetCore . Components . Authorization ;
44#endif
55using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
6+ #if ( UseWebAssembly )
7+ using Microsoft . FluentUI . AspNetCore . Components ;
8+ #endif
69
710var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
811
912#if ( IndividualLocalAuth )
1013builder . Services . AddAuthorizationCore ( ) ;
1114builder . Services . AddCascadingAuthenticationState ( ) ;
1215builder . Services . AddSingleton < AuthenticationStateProvider , PersistentAuthenticationStateProvider > ( ) ;
16+ #endif
1317
18+ #if ( UseWebAssembly )
19+ builder . Services . AddFluentUIComponents ( ) ;
1420#endif
21+
1522await builder . Build ( ) . RunAsync ( ) ;
Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
2+ #if ( UseWebAssembly )
3+ using Microsoft . FluentUI . AspNetCore . Components ;
4+ #endif
25
36namespace BlazorWeb_CSharp . Client ;
47
@@ -12,8 +15,12 @@ static async Task Main(string[] args)
1215 builder . Services . AddAuthorizationCore ( ) ;
1316 builder . Services . AddCascadingAuthenticationState ( ) ;
1417 builder . Services . AddAuthenticationStateDeserialization ( ) ;
18+ #endif
1519
20+ #if ( UseWebAssembly )
21+ builder . Services . AddFluentUIComponents ( ) ;
1622#endif
23+
1724 await builder . Build ( ) . RunAsync ( ) ;
1825 }
1926}
Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
2+ #if ( UseWebAssembly )
3+ using Microsoft . FluentUI . AspNetCore . Components ;
4+ #endif
25
36var builder = WebAssemblyHostBuilder . CreateDefault ( args ) ;
47
58#if ( IndividualLocalAuth )
69builder . Services . AddAuthorizationCore ( ) ;
710builder . Services . AddCascadingAuthenticationState ( ) ;
811builder . Services . AddAuthenticationStateDeserialization ( ) ;
12+ #endif
913
14+ #if ( UseWebAssembly )
15+ builder . Services . AddFluentUIComponents ( ) ;
1016#endif
17+
1118await builder . Build ( ) . RunAsync ( ) ;
You can’t perform that action at this time.
0 commit comments