public void o2ShellCommand(string shellCommandToExecute)
 {
     O2WcfUtils.wcfMessageReceived("WcfRequest: shellCommandToExecute( " + shellCommandToExecute + " )");
     if (WCF_DI.o2Shell != null)
     {
         WCF_DI.o2Shell.shellExecution.execute(shellCommandToExecute);
     }
     else
     {
         WCF_DI.log.error("received sendO2ShellCommand command but no O2Shell is currently available");
     }
 }
 public bool createAppDomainWithDlls(string appDomainName, List <string> dllsOfDllsToLoadInNewAppDomain)
 {
     try
     {
         O2WcfUtils.wcfMessageReceived("WcfRequest: createAppDomainWithDlls( " + appDomainName + " , with " + dllsOfDllsToLoadInNewAppDomain.Count + " dlls)");
         var appDomainTempDirectory = WCF_DI.config.TempFolderInTempDirectory;
         new O2AppDomainFactory(appDomainName, appDomainTempDirectory, dllsOfDllsToLoadInNewAppDomain);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public void closeO2KernelProcess()
 {
     O2WcfUtils.wcfMessageReceived("closeO2KernelProcess()");
     O2Kernel_Processes.KillCurrentO2Process(1000);
 }
 public int getO2KernelProcessId()
 {
     O2WcfUtils.wcfMessageReceived("WcfRequest: getCurrentProcessId()");
     return(O2Kernel_Processes.getCurrentProcessId());
 }
 public string getName()
 {
     O2WcfUtils.wcfMessageReceived("getName()");
     return(PublicDI.O2KernelProcessName);
     //set { DI.O2KernelProcessName = value; }
 }