IWebAssemblyHostEnvironment Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides information about the hosting environment an application is running in.
public interface class IWebAssemblyHostEnvironment
public interface IWebAssemblyHostEnvironment
type IWebAssemblyHostEnvironment = interface
Public Interface IWebAssemblyHostEnvironment
Properties
BaseAddress |
Gets the base address for the application. This is typically derived from the |
Environment |
Gets the name of the environment. This is configured to use the environment of the application hosting the Blazor WebAssembly application. Configured to "Production" when not specified by the host. |
Extension Methods
IsDevelopment(IWebAssemblyHostEnvironment) |
Checks if the current hosting environment name is |
IsEnvironment(IWebAssemblyHostEnvironment, String) |
Compares the current hosting environment name against the specified value. |
IsProduction(IWebAssemblyHostEnvironment) |
Checks if the current hosting environment name is |
IsStaging(IWebAssemblyHostEnvironment) |
Checks if the current hosting environment name is |