Pagina profilo e modiche al theme
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using MudBlazor.Services;
|
||||
using Template.Shared.Components;
|
||||
using Template.Shared.Core.Interface;
|
||||
using Template.Shared.Core.Services;
|
||||
using Template.Shared.Interfaces;
|
||||
using Template.Web.Services;
|
||||
@@ -14,6 +15,7 @@ builder.Services.AddMudServices();
|
||||
builder.Services.AddAuthorizationCore();
|
||||
|
||||
builder.Services.AddScoped<IFormFactor, FormFactor>();
|
||||
builder.Services.AddScoped<INetworkService, NetworkService>();
|
||||
|
||||
builder.Services.AddScoped<AppAuthenticationStateProvider>();
|
||||
builder.Services.AddScoped<AuthenticationStateProvider>(provider => provider.GetRequiredService<AppAuthenticationStateProvider>());
|
||||
|
||||
12
Template.Web/Services/NetworkService.cs
Normal file
12
Template.Web/Services/NetworkService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Template.Shared.Core.Interface;
|
||||
|
||||
namespace Template.Web.Services;
|
||||
|
||||
public class NetworkService : INetworkService
|
||||
{
|
||||
public bool IsNetworkAvailable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user