Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
#if (UseWebAssembly)
using Microsoft.FluentUI.AspNetCore.Components;
#endif

namespace BlazorWebCSharp._1.Client;

Expand All @@ -12,8 +15,12 @@ static async Task Main(string[] args)
builder.Services.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddAuthenticationStateDeserialization();
#endif

#if (UseWebAssembly)
builder.Services.AddFluentUIComponents();
#endif

await builder.Build().RunAsync();
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
#if (UseWebAssembly)
using Microsoft.FluentUI.AspNetCore.Components;
#endif

var builder = WebAssemblyHostBuilder.CreateDefault(args);

#if (IndividualLocalAuth)
builder.Services.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddAuthenticationStateDeserialization();
#endif

#if (UseWebAssembly)
builder.Services.AddFluentUIComponents();
#endif

await builder.Build().RunAsync();
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
@using BlazorWebCSharp._1
@*#if (UseWebAssembly) -->
@using BlazorWebCSharp._1.Client
##endif*@
@*#if (UseServer && UseWebAssembly && InteractiveAtRoot) -->
@using BlazorWebCSharp._1.Client.Layout
##endif*@
@using BlazorWebCSharp._1.Components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"exclude": [
"BlazorWeb-CSharp/Components/Account/**",
"BlazorWeb-CSharp/Data/**",
"BlazorWeb-CSharp.Client/PersistentAuthenticationStateProvider.cs",
"BlazorWeb-CSharp.Client/UserInfo.cs",
"BlazorWeb-CSharp.Client/Pages/Auth.razor"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
using Microsoft.AspNetCore.Components.Authorization;
#endif
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
#if (UseWebAssembly)
using Microsoft.FluentUI.AspNetCore.Components;
#endif

namespace BlazorWeb_CSharp.Client;

Expand All @@ -16,8 +19,12 @@ static async Task Main(string[] args)
builder.Services.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddSingleton<AuthenticationStateProvider, PersistentAuthenticationStateProvider>();
#endif

#if (UseWebAssembly)
builder.Services.AddFluentUIComponents();
#endif

await builder.Build().RunAsync();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
using Microsoft.AspNetCore.Components.Authorization;
#endif
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
#if (UseWebAssembly)
using Microsoft.FluentUI.AspNetCore.Components;
#endif

var builder = WebAssemblyHostBuilder.CreateDefault(args);

#if (IndividualLocalAuth)
builder.Services.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddSingleton<AuthenticationStateProvider, PersistentAuthenticationStateProvider>();
#endif

#if (UseWebAssembly)
builder.Services.AddFluentUIComponents();
#endif

await builder.Build().RunAsync();
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
#if (UseWebAssembly)
using Microsoft.FluentUI.AspNetCore.Components;
#endif

namespace BlazorWeb_CSharp.Client;

Expand All @@ -12,8 +15,12 @@ static async Task Main(string[] args)
builder.Services.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddAuthenticationStateDeserialization();
#endif

#if (UseWebAssembly)
builder.Services.AddFluentUIComponents();
#endif

await builder.Build().RunAsync();
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
#if (UseWebAssembly)
using Microsoft.FluentUI.AspNetCore.Components;
#endif

var builder = WebAssemblyHostBuilder.CreateDefault(args);

#if (IndividualLocalAuth)
builder.Services.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddAuthenticationStateDeserialization();
#endif

#if (UseWebAssembly)
builder.Services.AddFluentUIComponents();
#endif

await builder.Build().RunAsync();
Loading