13 lines
420 B
C#
13 lines
420 B
C#
|
|
using System;
|
|||
|
|
using System.Net.Http;
|
|||
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
using SkiaSharpSample;
|
|||
|
|
|
|||
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|||
|
|
|
|||
|
|
builder.RootComponents.Add<App>("#app");
|
|||
|
|
|
|||
|
|
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
|||
|
|
|
|||
|
|
await builder.Build().RunAsync();
|