RocketEnvironmentExtensions.

IsEnvironment(IRocketEnvironment, string) Method

Summary

Compares the current host environment name against the specified value.

Syntax

public static bool IsEnvironment(this IRocketEnvironment hostEnvironment, string environmentName)

Parameters

Name Type Description
hostEnvironment IRocketEnvironment An instance of IRocketEnvironment.
environmentName string Environment name to validate against.

Return Value

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