1 implementation of IWebAssemblyHostEnvironment
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostEnvironment.cs (1)
6
internal sealed class WebAssemblyHostEnvironment :
IWebAssemblyHostEnvironment
12 references to IWebAssemblyHostEnvironment
Microsoft.AspNetCore.Components.WebAssembly (11)
Hosting\WebAssemblyHostBuilder.cs (2)
177
Services.AddSingleton<
IWebAssemblyHostEnvironment
>(hostEnvironment);
241
public
IWebAssemblyHostEnvironment
HostEnvironment { get; }
Hosting\WebAssemblyHostEnvironmentExtensions.cs (9)
7
/// Static class that adds extension methods to <see cref="
IWebAssemblyHostEnvironment
"/>.
14
/// <param name="hostingEnvironment">An instance of <see cref="
IWebAssemblyHostEnvironment
"/>.</param>
16
public static bool IsDevelopment(this
IWebAssemblyHostEnvironment
hostingEnvironment)
26
/// <param name="hostingEnvironment">An instance of <see cref="
IWebAssemblyHostEnvironment
"/>.</param>
28
public static bool IsStaging(this
IWebAssemblyHostEnvironment
hostingEnvironment)
38
/// <param name="hostingEnvironment">An instance of <see cref="
IWebAssemblyHostEnvironment
"/>.</param>
40
public static bool IsProduction(this
IWebAssemblyHostEnvironment
hostingEnvironment)
50
/// <param name="hostingEnvironment">An instance of <see cref="
IWebAssemblyHostEnvironment
"/>.</param>
54
this
IWebAssemblyHostEnvironment
hostingEnvironment,
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostBuilderTest.cs (1)
217
typeof(
IWebAssemblyHostEnvironment
),