-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
30 lines (24 loc) · 966 Bytes
/
Program.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
using DemoBlazor;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Blazorise;
using Blazorise.Material;
using Blazorise.Icons.Material;
using DemoBlazor.Services;
using DemoBlazor.Services.General;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services
.AddBlazorise(options =>
{
options.Immediate = true;
})
.AddMaterialProviders()
.AddMaterialIcons();
builder.Services.AddScoped<IPerfilesService, PerfilesService>();
builder.Services.AddScoped<IUsuariosService, UsuariosService>();
builder.Services.AddScoped<IModulosService, ModulosService>();
builder.Services.AddScoped<IAccesosService, AccesosService>();
await builder.Build().RunAsync();