mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-06 06:43:47 +00:00
Initial commit
This commit is contained in:
parent
1d9d051759
commit
9656378279
557 changed files with 182300 additions and 0 deletions
15
vscode/PracticalApps/Northwind.BlazorWasm/Client/Program.cs
Normal file
15
vscode/PracticalApps/Northwind.BlazorWasm/Client/Program.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Northwind.BlazorWasm.Client;
|
||||
using Packt.Shared;
|
||||
using Northwind.BlazorWasm.Client.Data;
|
||||
|
||||
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.AddTransient<INorthwindService, NorthwindService>();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
Loading…
Add table
Add a link
Reference in a new issue