Summary
Checks if the current host environment name is
Microsoft.Extensions.Hosting.EnvironmentName.Production.
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Containing Type
- Rocket
Environment Extensions
Syntax
public static bool IsProduction(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 production; otherwise, false. |
