1 implementation of IWebAssemblyHostEnvironment
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostEnvironment.cs (1)
6
internal sealed class WebAssemblyHostEnvironment :
IWebAssemblyHostEnvironment
13 references to IWebAssemblyHostEnvironment
Microsoft.AspNetCore.Components.WebAssembly (12)
Hosting\WebAssemblyHostBuilder.cs (2)
187
Services.AddSingleton<
IWebAssemblyHostEnvironment
>(hostEnvironment);
251
public
IWebAssemblyHostEnvironment
HostEnvironment { get; }
Hosting\WebassemblyHostBuilderExtensions.cs (1)
34
Action<
IWebAssemblyHostEnvironment
, ServiceProviderOptions> configure)
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)
214
typeof(
IWebAssemblyHostEnvironment
),