Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Hosting.​Environments

Assembly: Microsoft.Extensions.Hosting.Abstractions

Inheritance: object → Environments

Commonly used environment names.

Fields and Constants

public static readonly string
Development
Specifies the Development environment.
Remarks The development environment can enable features that shouldn't be exposed in production. Because of the performance cost, scope validation and dependency validation only happens in development.
public static readonly string
Production
Specifies the Production environment.
Remarks The production environment should be configured to maximize security, performance, and application robustness.
public static readonly string
Staging
Specifies the Staging environment.
Remarks The staging environment can be used to validate app changes before changing the environment to production.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object