WebAssemblyHostEnvironmentExtensions.IsProduction Method

Definition

Checks if the current hosting environment name is Production.

public static bool IsProduction(this Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment hostingEnvironment);

Parameters

hostingEnvironment
IWebAssemblyHostEnvironment

An instance of IWebAssemblyHostEnvironment.

Returns

True if the environment name is Production, otherwise false.

Applies to

Product Versions