-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMauiProgram.cs
29 lines (24 loc) · 972 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
using DevExpress.Blazor.Reporting.Services;
using DxReportViewerMauiApp.Data;
using Microsoft.Extensions.Logging;
namespace DxReportViewerMauiApp {
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();
builder.Services.AddDevExpressWebAssemblyBlazorReportViewer();
builder.Services.AddScoped<IExportProcessor, SharedReportExportProcessor>();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Logging.AddDebug();
#endif
builder.Services.AddSingleton<WeatherForecastService>();
return builder.Build();
}
}
}