IRocketEnvironment Interface

Summary

IRocketEnvironment
graph BT Type["IRocketEnvironment"] class Type type-node Implementing0["RocketEnvironment"]-.->Type click Implementing0 "/api/Rocket.Surgery.Conventions/RocketEnvironment"

Syntax

public interface IRocketEnvironment

Attributes

Type Description
NullableContextAttribute

Properties

Name Value Summary
ApplicationName string
Gets or sets the name of the application. This property is automatically set by the host to the assembly containing the application entry point.
ContentRootFileProvider IFileProvider
Gets or sets an Microsoft.Extensions.FileProviders.IFileProvider pointing at Microsoft.Extensions.Hosting.IHostingEnvironment.ContentRootPath.
ContentRootPath string
Gets or sets the absolute path to the directory that contains the application content files.
EnvironmentName string
Gets or sets the name of the environment. The host automatically sets this property to the value of the of the "environment" key as specified in configuration.

Extension Methods

Name Value Summary
IsDevelopment() bool
Checks if the current host environment name is Microsoft.Extensions.Hosting.EnvironmentName.Development.
IsEnvironment(string) bool
Compares the current host environment name against the specified value.
IsProduction() bool
Checks if the current host environment name is Microsoft.Extensions.Hosting.EnvironmentName.Production.
IsStaging() bool
Checks if the current host environment name is Microsoft.Extensions.Hosting.EnvironmentName.Staging.
SetBackingValue<IRocketEnvironment, TV>(Expression<Func<IRocketEnvironment, TV>>, TV) T
Sets the backing value.
With<IRocketEnvironment, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.