1 write to HostEnvironment
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
90HostEnvironment = hostEnvironment;
4 references to HostEnvironment
BasicTestApp (1)
Program.cs (1)
34builder.Services.AddSingleton(new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
HostedBlazorWebassemblyApp.Client (1)
Program.cs (1)
24builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
Hosting\WebAssemblyHostBuilderTest.cs (2)
133Assert.NotNull(builder.HostEnvironment); 134Assert.True(WebAssemblyHostEnvironmentExtensions.IsDevelopment(builder.HostEnvironment));