Class HostEnvironmentExtensions
- Namespace
- Cuemon.Extensions.Hosting
- Assembly
- Cuemon.Extensions.Hosting.dll
Extension methods for the IHostEnvironment interface.
public static class HostEnvironmentExtensions
- Inheritance
-
HostEnvironmentExtensions
Methods
IsLocalDevelopment(IHostEnvironment)
Determines whether the specified environment is equal to LocalDevelopment.
public static bool IsLocalDevelopment(this IHostEnvironment environment)
Parameters
environmentIHostEnvironmentThe IHostingEnvironment to extend.
Returns
- bool
trueifenvironmentisLocalDevelopment; otherwisefalse
IsNonProduction(IHostEnvironment)
Determines whether the specified environment is different from Production.
public static bool IsNonProduction(this IHostEnvironment environment)
Parameters
environmentIHostEnvironmentThe IHostingEnvironment to extend.
Returns
- bool
trueifenvironmentis notProduction; otherwisefalse