/// <summary> /// Gets a port from a port supplier. /// </summary> /// <param name="guidPort">Globally unique identifier (GUID) of the port.</param> /// <param name="ppPort">Returns an IDebugPort2 object that represents the port.</param> /// <returns> /// If successful, returns S_OK; otherwise, returns an error code. Returns E_PORTSUPPLIER_NO_PORT if no port exists with the given identifier. /// </returns> public override int GetPort(ref Guid guidPort, out Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 ppPort) { Logger.Debug(string.Empty); guidPort = new Guid( PsConstants.PortGuid ); ppPort = new PowerShellDebugPort(); return VSConstants.S_OK; }
/// <summary> /// Gets a port from a port supplier. /// </summary> /// <param name="guidPort">Globally unique identifier (GUID) of the port.</param> /// <param name="ppPort">Returns an IDebugPort2 object that represents the port.</param> /// <returns> /// If successful, returns S_OK; otherwise, returns an error code. Returns E_PORTSUPPLIER_NO_PORT if no port exists with the given identifier. /// </returns> public override int GetPort(ref Guid guidPort, out Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 ppPort) { Logger.Debug(string.Empty); guidPort = new Guid(PsConstants.PortGuid); ppPort = new PowerShellDebugPort(); return(VSConstants.S_OK); }