1 implementation of IWebAssemblyHostEnvironment
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostEnvironment.cs (1)
6internal sealed class WebAssemblyHostEnvironment : IWebAssemblyHostEnvironment
16 references to IWebAssemblyHostEnvironment
Microsoft.AspNetCore.Components.WebAssembly (15)
Hosting\WebAssemblyHostBuilder.cs (3)
193Services.AddSingleton<IWebAssemblyHostEnvironment>(hostEnvironment); 194Services.AddSingleton<IHostEnvironment>(sp => new WebAssemblyHostEnvironmentAdapter(sp.GetRequiredService<IWebAssemblyHostEnvironment>())); 258public IWebAssemblyHostEnvironment HostEnvironment { get; }
Hosting\WebassemblyHostBuilderExtensions.cs (1)
34Action<IWebAssemblyHostEnvironment, ServiceProviderOptions> configure)
Hosting\WebAssemblyHostEnvironmentAdapter.cs (2)
11private readonly IWebAssemblyHostEnvironment _webAssemblyHostEnvironment; 13public WebAssemblyHostEnvironmentAdapter(IWebAssemblyHostEnvironment webAssemblyHostEnvironment)
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> 16public static bool IsDevelopment(this IWebAssemblyHostEnvironment hostingEnvironment) 26/// <param name="hostingEnvironment">An instance of <see cref="IWebAssemblyHostEnvironment"/>.</param> 28public static bool IsStaging(this IWebAssemblyHostEnvironment hostingEnvironment) 38/// <param name="hostingEnvironment">An instance of <see cref="IWebAssemblyHostEnvironment"/>.</param> 40public static bool IsProduction(this IWebAssemblyHostEnvironment hostingEnvironment) 50/// <param name="hostingEnvironment">An instance of <see cref="IWebAssemblyHostEnvironment"/>.</param> 54this IWebAssemblyHostEnvironment hostingEnvironment,
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostBuilderTest.cs (1)
215typeof(IWebAssemblyHostEnvironment),