-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMauiProgram.cs
36 lines (29 loc) · 1010 Bytes
/
MauiProgram.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using Microsoft.Extensions.Logging;
using Contabilidad_APP.Components.Models.Services;
using Contabilidad_APP.Components.Models.Interfaces;
namespace Contabilidad_APP
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("Nunito-ExtraLight.ttf", "Nunito");
});
builder.Services.AddSingleton<Config>();
// Register the storage services
builder.Services.AddSingleton(typeof(IStorageService<>), typeof(FileStorageService<>));
builder.Services.AddSingleton<PreferencesService>();
builder.Services.AddMauiBlazorWebView();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Logging.AddDebug();
#endif
return builder.Build();
}
}
}