-
Notifications
You must be signed in to change notification settings - Fork 19
/
MauiProgram.cs
45 lines (37 loc) · 1.4 KB
/
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
37
38
39
40
41
42
43
44
45
namespace BikeSparesInventorySystem
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});
builder.Services.AddMauiBlazorWebView();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Logging.AddDebug();
#endif
builder.Services.AddMudServices(config =>
{
config.SnackbarConfiguration.VisibleStateDuration = 4000;
config.SnackbarConfiguration.HideTransitionDuration = 200;
config.SnackbarConfiguration.ShowTransitionDuration = 200;
config.SnackbarConfiguration.MaxDisplayedSnackbars = 6;
config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomStart;
});
// builder.Services.AddCsvFileProvider();
// builder.Services.AddExcelFileProvider();
builder.Services.AddJsonFileProvider();
builder.Services.AddRepository();
builder.Services.AddSeeder();
builder.Services.AddSession();
builder.Services.AddAuth();
return builder.Build();
}
}
}