Example #1
0
 public SubSystem()
 {
     this.refresh        = true;
     this.subSystem      = null;
     this.maintenance    = null;
     this.subSystemIscsi = null;
 }
Example #2
0
 public override void InitializeComInterfaces()
 {
     base.InitializeComInterfaces();
     if (this.subSystem == null)
     {
         this.subSystem = InteropHelpers.QueryInterface <IVdsSubSystem>(base.ComUnknown);
         if (this.subSystem == null)
         {
             throw new VdsException("QueryInterface for IVdsSubSystem failed.");
         }
     }
     if (this.subSystem2 == null)
     {
         this.subSystem2 = InteropHelpers.QueryInterface <IVdsSubSystem2>(base.ComUnknown);
     }
     if (this.maintenance == null)
     {
         this.maintenance = InteropHelpers.QueryInterface <IVdsMaintenance>(base.ComUnknown);
     }
     if (this.subSystemIscsi == null)
     {
         this.subSystemIscsi = InteropHelpers.QueryInterface <IVdsSubSystemIscsi>(base.ComUnknown);
     }
     if (this.importTarget == null)
     {
         this.importTarget = InteropHelpers.QueryInterface <IVdsSubSystemImportTarget>(base.ComUnknown);
     }
     if (this.subSystemNaming == null)
     {
         this.subSystemNaming = InteropHelpers.QueryInterface <IVdsSubSystemNaming>(base.ComUnknown);
     }
     if (this.subSystemInterconnect == null)
     {
         this.subSystemInterconnect = InteropHelpers.QueryInterface <IVdsSubSystemInterconnect>(base.ComUnknown);
     }
 }