public override void InitializeComInterfaces() { base.InitializeComInterfaces(); if (this.lun == null) { this.lun = InteropHelpers.QueryInterface <IVdsLun>(base.ComUnknown); if (this.lun == null) { throw new VdsException("QueryInterface for IVdsLun failed."); } } if (this.lunNaming == null) { this.lunNaming = InteropHelpers.QueryInterface <IVdsLunNaming>(base.ComUnknown); } if (this.lunMpio == null) { this.lunMpio = InteropHelpers.QueryInterface <IVdsLunMpio>(base.ComUnknown); } if (this.lunControllerPorts == null) { this.lunControllerPorts = InteropHelpers.QueryInterface <IVdsLunControllerPorts>(base.ComUnknown); } if (this.lunIscsi == null) { this.lunIscsi = InteropHelpers.QueryInterface <IVdsLunIscsi>(base.ComUnknown); } if (this.maintenance == null) { this.maintenance = InteropHelpers.QueryInterface <IVdsMaintenance>(base.ComUnknown); } if (this.lunNumber == null) { this.lunNumber = InteropHelpers.QueryInterface <IVdsLunNumber>(base.ComUnknown); } }
public Lun() { this.refresh = true; this.lun = null; }