Exemplo n.º 1
0
 public NumberOfRunningVMs(
     IConfigurationStore store,
     IVMData hyperVData)
 {
     this.configurationStore = store;
     this.hyperV             = hyperVData;
 }
Exemplo n.º 2
0
 public NumberOfRunningVMs(
     IConfigurationStore store, 
     IVMData hyperVData)
 {
     this.configurationStore = store;
     this.hyperV = hyperVData;
 }
Exemplo n.º 3
0
 public ValidateLaunch(IConfigurationStore configurationStore, IVMData hypervData)
 {
     if (configurationStore != null && hypervData != null)
     {
         this.configurationStore = configurationStore; this.hyperVDataAccess = hypervData;
     }
     else
     {
         throw new ConfigurationErrorsException("Missing Configuration Store");
     }
 }
Exemplo n.º 4
0
 private void LoadLaunchConditionRules()
 {
     this.hyperVDataAccess = new HyperVData(); this.rules.Add( new NumberOfRunningVMs( this.configurationStore,this.hyperVDataAccess));
 }
Exemplo n.º 5
0
 public ValidateLaunch(IConfigurationStore configurationStore, IVMData hypervData)
 {
     if (configurationStore != null && hypervData != null) { this.configurationStore = configurationStore; this.hyperVDataAccess = hypervData; } else { throw new ConfigurationErrorsException("Missing Configuration Store"); }
 }
Exemplo n.º 6
0
 private void LoadLaunchConditionRules()
 {
     this.hyperVDataAccess = new HyperVData(); this.rules.Add(new NumberOfRunningVMs(this.configurationStore, this.hyperVDataAccess));
 }