static DI() { //Apply .NET Network Connection hack O2Kernel_Web.ApplyNetworkConnectionHack(); // all these variables need to be setup appDomainsControledByO2Kernel = new Dictionary <string, O2AppDomainFactory>(); log = new KO2Log(); reflection = new KReflection(); o2MessageQueue = KO2MessageQueue.getO2KernelQueue(); // before we load the O2Config data (which is loaded from the local disk) config = O2ConfigLoader.getKO2Config(); //make sure theses values are set (could be a prob due to changed location of these values) if (config.LocalScriptsFolder == null) { config.LocalScriptsFolder = KO2Config.defaultLocalScriptFolder; config.SvnO2RootFolder = KO2Config.defaultSvnO2RootFolder; config.SvnO2DatabaseRulesFolder = KO2Config.defaultSvnO2DatabaseRulesFolder; } O2KernelProcessName = "Generic O2 Kernel Process";; AppDomainUtils.registerCurrentAppDomain(); }
static DI() { log = PublicDI.log; config = new KO2Config(); reflection = new KReflection(); showMdbgDebugMessages = false; }
[Test] public void invoke_Ctor_Static() { var kReflection = new KReflection(); assert_Is_True(kReflection.invoke_Ctor_Static(typeof(CompileEngine))); assert_Not_Null(CompileEngine.LocalReferenceFolders); CompileEngine.LocalReferenceFolders = null; assert_Is_Null(CompileEngine.LocalReferenceFolders); assert_Is_True(kReflection.invoke_Ctor_Static(typeof(CompileEngine))); assert_Not_Null(CompileEngine.LocalReferenceFolders); }
static DI() { log = PublicDI.log; config = new KO2Config(); reflection = new KReflection(); }