Beispiel #1
0
 private void SpawnStandaloneVM(StartupParams startup, IStartupHandler handler)
 {
     ShutdownCreator();
     _standaloneVmCreator            = new StandaloneVMCreator(startup, handler);
     _standaloneVmCreator.VMSpawned += StandaloneVmCreatorVmSpawned;
     _standaloneVmCreator.Create();
 }
Beispiel #2
0
 private void ShutdownCreator()
 {
     if (_standaloneVmCreator != null)
     {
         _standaloneVmCreator.VMSpawned -= StandaloneVmCreatorVmSpawned;
         _standaloneVmCreator.Dispose();
         _standaloneVmCreator = null;
     }
 }
 private void SpawnStandaloneVM(StartupParams startup, IStartupHandler handler)
 {
     ShutdownCreator();
     _standaloneVmCreator = new StandaloneVMCreator(startup, handler);
     _standaloneVmCreator.VMSpawned += StandaloneVmCreatorVmSpawned;
     _standaloneVmCreator.Create();
 }
 private void ShutdownCreator()
 {
     if (_standaloneVmCreator != null)
     {
         _standaloneVmCreator.VMSpawned -= StandaloneVmCreatorVmSpawned;
         _standaloneVmCreator.Dispose();
         _standaloneVmCreator = null;
     }
 }