RocketEnvironmentExtensions Class

Summary

Extension methods for IRocketEnvironment.
graph BT Type-->Base0["Object"] Type["RocketEnvironmentExtensions"] class Type type-node

Syntax

public static class RocketEnvironmentExtensions

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

Name Value Summary
Convert(IHostingEnvironment) IRocketEnvironment
Converts the specified environment.
static
IsDevelopment(IRocketEnvironment) bool
Checks if the current host environment name is Microsoft.Extensions.Hosting.EnvironmentName.Development.
static
IsEnvironment(IRocketEnvironment, string) bool
Compares the current host environment name against the specified value.
static
IsProduction(IRocketEnvironment) bool
Checks if the current host environment name is Microsoft.Extensions.Hosting.EnvironmentName.Production.
static
IsStaging(IRocketEnvironment) bool
Checks if the current host environment name is Microsoft.Extensions.Hosting.EnvironmentName.Staging.
static