public override void InitializeComInterfaces() { base.InitializeComInterfaces(); if (this.controller == null) { try { this.controller = (IVdsController)base.ComUnknown; } catch (InvalidCastException exception) { throw new VdsException("QueryInterface for IVdsController failed.", exception); } } if (this.controllerControllerPort == null) { try { this.controllerControllerPort = (IVdsControllerControllerPort)base.ComUnknown; } catch (InvalidCastException) { } } if (this.maintenance == null) { try { this.maintenance = (IVdsMaintenance)base.ComUnknown; } catch (InvalidCastException) { } } }
public Controller() { this.refresh = true; this.controller = null; }