HostingEnvironment HostingEnvironment HostingEnvironment Class

Definition

public class HostingEnvironment : Microsoft.AspNetCore.Hosting.IHostingEnvironment, Microsoft.Extensions.Hosting.IHostingEnvironment
type HostingEnvironment = class
    interface IHostingEnvironment
    interface IHostingEnvironment
Public Class HostingEnvironment
Implements IHostingEnvironment, IHostingEnvironment
Inheritance
HostingEnvironmentHostingEnvironmentHostingEnvironment
Implements

Constructors

HostingEnvironment() HostingEnvironment() HostingEnvironment()

Properties

ApplicationName ApplicationName ApplicationName
ContentRootFileProvider ContentRootFileProvider ContentRootFileProvider
ContentRootPath ContentRootPath ContentRootPath
EnvironmentName EnvironmentName EnvironmentName
WebRootFileProvider WebRootFileProvider WebRootFileProvider
WebRootPath WebRootPath WebRootPath

Extension Methods

IsDevelopment(IHostingEnvironment) IsDevelopment(IHostingEnvironment) IsDevelopment(IHostingEnvironment)

Checks if the current hosting environment name is Development.

IsEnvironment(IHostingEnvironment, String) IsEnvironment(IHostingEnvironment, String) IsEnvironment(IHostingEnvironment, String)

Compares the current hosting environment name against the specified value.

IsProduction(IHostingEnvironment) IsProduction(IHostingEnvironment) IsProduction(IHostingEnvironment)

Checks if the current hosting environment name is Production.

IsStaging(IHostingEnvironment) IsStaging(IHostingEnvironment) IsStaging(IHostingEnvironment)

Checks if the current hosting environment name is Staging.

Initialize(IHostingEnvironment, String, WebHostOptions) Initialize(IHostingEnvironment, String, WebHostOptions) Initialize(IHostingEnvironment, String, WebHostOptions)
Initialize(IHostingEnvironment, String, String, WebHostOptions) Initialize(IHostingEnvironment, String, String, WebHostOptions) Initialize(IHostingEnvironment, String, String, WebHostOptions)
IsDevelopment(IHostingEnvironment) IsDevelopment(IHostingEnvironment) IsDevelopment(IHostingEnvironment)

Checks if the current hosting environment name is Development.

IsEnvironment(IHostingEnvironment, String) IsEnvironment(IHostingEnvironment, String) IsEnvironment(IHostingEnvironment, String)

Compares the current hosting environment name against the specified value.

IsProduction(IHostingEnvironment) IsProduction(IHostingEnvironment) IsProduction(IHostingEnvironment)

Checks if the current hosting environment name is Production.

IsStaging(IHostingEnvironment) IsStaging(IHostingEnvironment) IsStaging(IHostingEnvironment)

Checks if the current hosting environment name is Staging.

Applies to