Пример #1
0
        public bool IsValidEnvironmentOverride(string environment)
        {
            environment = environment.ToUpper();
            if (!Enum.IsDefined(typeof(AppServerEnvironmentOverride), environment))
            {
                return(false);
            }
            AppServerEnvironmentOverride appServerEnvironmentOverrideFromString = AppServerEnvironmentController.GetAppServerEnvironmentOverrideFromString(environment);

            return(appServerEnvironmentOverrideFromString == AppServerEnvironmentOverride.DEFAULT || (appServerEnvironmentOverrideFromString != AppServerEnvironmentOverride.QA01 && appServerEnvironmentOverrideFromString != AppServerEnvironmentOverride.QA02));
        }
Пример #2
0
 public static bool IsLocalServer()
 {
     return(AppServerEnvironmentController.GetCompileTimeServer() == "http://localhost:8080/starts");
 }
Пример #3
0
 public AppServerEnvironmentController()
 {
     Service.Set <AppServerEnvironmentController>(this);
     this.Server = AppServerEnvironmentController.GetCompileTimeServer();
     this.OverrideEnvironment();
 }
Пример #4
0
 public unsafe static long $Invoke6(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(AppServerEnvironmentController.IsLocalServer()));
 }
Пример #5
0
 public unsafe static long $Invoke2(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(AppServerEnvironmentController.GetCompileTimeServer()));
 }
Пример #6
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(AppServerEnvironmentController.GetAppServerEnvironmentOverrideFromString(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }
Пример #7
0
        public AppServerEnvironmentOverride GetEnvironmentOverride()
        {
            string environmentOverridePreference = this.GetEnvironmentOverridePreference();

            return(AppServerEnvironmentController.GetAppServerEnvironmentOverrideFromString(environmentOverridePreference));
        }
Пример #8
0
 public bool IsValidEnvironmentOverride(string environment)
 {
     environment = environment.ToUpper();
     return(Enum.IsDefined(typeof(AppServerEnvironmentOverride), environment) && AppServerEnvironmentController.GetAppServerEnvironmentOverrideFromString(environment) == AppServerEnvironmentOverride.DEFAULT);
 }