Example #1
0
        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;
 }
Example #3
0
 public ExeHostingEnvironment()
 {
     _hostingEnvironmentType = HostingEnvironmentType.Development;
 }