Summary
Compares the current host environment name against the specified value.
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Containing Type
- Rocket
Environment Extensions
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 . |