Summary
IRocketEnvironment
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Implementing Types
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 |
---|---|
Nullable |
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.
|
Content |
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 |
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 |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|