IWebAssemblyHostEnvironment Interface

Definition

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 >base href< value in the host page.

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 Development.

IsEnvironment(IWebAssemblyHostEnvironment, String)

Compares the current hosting environment name against the specified value.

IsProduction(IWebAssemblyHostEnvironment)

Checks if the current hosting environment name is Production.

IsStaging(IWebAssemblyHostEnvironment)

Checks if the current hosting environment name is Staging.

Applies to