-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
18 lines (14 loc) Β· 664 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor.Services;
using Portfolio;
using Portfolio.Interfaces;
using Portfolio.Services;
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.AddScoped<IContentService, ContentService>();
builder.Services.AddScoped<IProjectsService, ProjectsService>();
builder.Services.AddMudServices();
await builder.Build().RunAsync();