Summary
Extension methods for
IRocketEnvironment.
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["RocketEnvironmentExtensions"]
class Type type-node
Syntax
public static class RocketEnvironmentExtensions
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Methods
| Name | Value | Summary |
|---|---|---|
| Convert |
IRocketEnvironment |
Converts the specified environment.
static
|
| IsDevelopment |
bool |
Checks if the current host environment name is
Microsoft.Extensions.Hosting.EnvironmentName.Development.
static
|
| IsEnvironment |
bool |
Compares the current host environment name against the specified value.
static
|
| IsProduction |
bool |
Checks if the current host environment name is
Microsoft.Extensions.Hosting.EnvironmentName.Production.
static
|
| IsStaging |
bool |
Checks if the current host environment name is
Microsoft.Extensions.Hosting.EnvironmentName.Staging.
static
|
