public ExeHostingEnvironment(string environment) { switch (environment) { case "Development": _hostingEnvironmentType = HostingEnvironmentType.Development; break; case "Smartosc": _hostingEnvironmentType = HostingEnvironmentType.Smartosc; break; case "Staging": _hostingEnvironmentType = HostingEnvironmentType.Staging; break; case "Uat": _hostingEnvironmentType = HostingEnvironmentType.Uat; break; case "Production": _hostingEnvironmentType = HostingEnvironmentType.Production; break; default: throw new InvalidParameterException(); } }
public HostingEnvironmentFilter(bool internalOnly = true) : base(ResourceType.HostingEnvironment, internalOnly) { this.PlatformType = PlatformType.Windows; this.HostingEnvironmentType = HostingEnvironmentType.All; }
public ExeHostingEnvironment() { _hostingEnvironmentType = HostingEnvironmentType.Development; }