RocketEnvironmentExtensions.

IsDevelopment(IRocketEnvironment) Method

Summary

Checks if the current host environment name is Microsoft.Extensions.Hosting.EnvironmentName.Development.

Syntax

public static bool IsDevelopment(this IRocketEnvironment hostEnvironment)

Parameters

Name Type Description
hostEnvironment IRocketEnvironment An instance of IRocketEnvironment.

Return Value

Type Description
bool true if the specified host environment is development; otherwise, false.