Exemple #1
0
 public SystemActiveResponseMessage ActiveSystem(SystemActiveRequestMessage request)
 {
     List<SystemInfoResponseMessage.VMSystem> outSystems = new List<SystemInfoResponseMessage.VMSystem>();
     object syncRoot = new object();
     Parallel.ForEach(Config.GetInstance("vmware.config").Machines, machine =>
     {
         VMware manager = new VMware(machine.Address, machine.Username, machine.Password);
         manager.ActiveSystem(request.Names);
     });
     return new SystemActiveResponseMessage();
 }
Exemple #2
0
 public SystemActiveResponseMessage ActiveSystem(SystemActiveRequestMessage request)
 {
     Task.Run(() =>
     {
         SystemActiveResponseMessage response = null;
         using (ChannelFactory<IVMSystem> channelFactory = new ChannelFactory<IVMSystem>("VMSystem"))
         {
             IVMSystem proxy = channelFactory.CreateChannel(this.endpoint);
             response = proxy.ActiveSystem(request);
         }
     });
     return new SystemActiveResponseMessage();
 }
Exemple #3
0
 public SystemActiveResponseMessage ActiveSystem(SystemActiveRequestMessage request)
 {
     //TODO
     return null;
 }