Example #1
0
 public void Dispose()
 {
     if (IsDisposed) return;
     IsDisposed = true;
     core.ConfigReloaded -= CoreConfigReloadedHandler;
     StopPowerShellExecutionHost();
     backupHost.Dispose();
     backupHost = null;
 }
Example #2
0
 public ConEmuExecutionHost(Core core, ConEmuControl control, string conEmuExe)
 {
     this.core = core;
     this.control = control;
     this.conEmuExe = conEmuExe;
     backupHost = new DefaultExecutionHost();
     config = LoadConfigFromResource();
     StartPowerShellExecutionHost();
     this.core.ConfigReloaded += CoreConfigReloadedHandler;
 }