9 references to EnvironmentName
Microsoft.Extensions.Hosting.Abstractions (9)
HostingEnvironmentExtensions.cs (9)
15/// Checks if the current hosting environment name is <see cref="EnvironmentName.Development"/>. 18/// <returns><see langword="true" /> if the environment name is <see cref="EnvironmentName.Development"/>, otherwise <see langword="false" />.</returns> 23return hostingEnvironment.IsEnvironment(EnvironmentName.Development); 27/// Checks if the current hosting environment name is <see cref="EnvironmentName.Staging"/>. 30/// <returns><see langword="true" /> if the environment name is <see cref="EnvironmentName.Staging"/>, otherwise <see langword="false" />.</returns> 35return hostingEnvironment.IsEnvironment(EnvironmentName.Staging); 39/// Checks if the current hosting environment name is <see cref="EnvironmentName.Production"/>. 42/// <returns><see langword="true" /> if the environment name is <see cref="EnvironmentName.Production"/>, otherwise <see langword="false" />.</returns> 47return hostingEnvironment.IsEnvironment(EnvironmentName.Production);