Pagina profilo e modiche al theme
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.Extensions.Logging;
|
||||
using MudBlazor.Services;
|
||||
using Template.Maui.Services;
|
||||
using Template.Shared;
|
||||
using Template.Shared.Core.Interface;
|
||||
using Template.Shared.Core.Services;
|
||||
using Template.Shared.Interfaces;
|
||||
|
||||
@@ -34,6 +35,8 @@ namespace Template.Maui
|
||||
builder.Services.AddScoped<AuthenticationStateProvider>(provider =>
|
||||
provider.GetRequiredService<AppAuthenticationStateProvider>());
|
||||
|
||||
builder.Services.AddScoped<INetworkService, NetworkService>();
|
||||
|
||||
#if DEBUG
|
||||
builder.Services.AddBlazorWebViewDeveloperTools();
|
||||
builder.Logging.AddDebug();
|
||||
|
||||
12
Template.Maui/Services/NetworkService.cs
Normal file
12
Template.Maui/Services/NetworkService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Template.Shared.Core.Interface;
|
||||
|
||||
namespace Template.Maui.Services;
|
||||
|
||||
public class NetworkService : INetworkService
|
||||
{
|
||||
public bool IsNetworkAvailable()
|
||||
{
|
||||
return Connectivity.Current.NetworkAccess == NetworkAccess.Internet;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user