//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { // // Gets the port supplier for this port. // LoggingUtils.PrintFunction(); ppSupplier = m_portSupplier; return(Constants.S_OK); }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public DebuggeePort(IDebugPortSupplier2 portSupplier, AndroidDevice device) { m_portSupplier = portSupplier ?? throw new ArgumentNullException(nameof(portSupplier)); m_portDevice = device ?? throw new ArgumentNullException(nameof(device)); m_portGuid = Guid.NewGuid(); m_portProcesses = new Dictionary <uint, DebuggeeProcess> (); m_eventConnectionPoints = new Dictionary <int, IDebugPortEvents2> (); }
DebugPort(DebugProcess.Factory debugProcessFactory, ProcessListRequest.Factory processListRequestFactory, CancelableTask.Factory cancelableTaskFactory, IDialogUtil dialogUtil, ISshManager sshManager, IMetrics metrics, Gamelet gamelet, IDebugPortSupplier2 supplier, string debugSessionId, string developerAccount) { _debugProcessFactory = debugProcessFactory; _processListRequestFactory = processListRequestFactory; _dialogUtil = dialogUtil; _guid = Guid.NewGuid(); _supplier = supplier; _developerAccount = developerAccount; _cancelableTaskFactory = cancelableTaskFactory; _sshManager = sshManager; _debugSessionMetrics = new DebugSessionMetrics(metrics); _debugSessionMetrics.DebugSessionId = debugSessionId; _actionRecorder = new ActionRecorder(_debugSessionMetrics); Gamelet = gamelet; }
public void SetUp() { _processFactory = Substitute.For <DebugProcess.Factory>(); _dialogUtil = Substitute.For <IDialogUtil>(); _sshManager = Substitute.For <ISshManager>(); _processListRequest = Substitute.For <IProcessListRequest>(); var processListRequestFactory = Substitute.For <ProcessListRequest.Factory>(); processListRequestFactory.Create().Returns(_processListRequest); var cancelableTaskFactory = FakeCancelableTask.CreateFactory(new JoinableTaskContext(), false); _metrics = Substitute.For <IMetrics>(); _portFactory = new DebugPort.Factory(_processFactory, processListRequestFactory, cancelableTaskFactory, _dialogUtil, _sshManager, _metrics, _reserverAccount); _portSupplier = Substitute.For <IDebugPortSupplier2>(); }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public DebuggeePort(IDebugPortSupplier2 portSupplier, AndroidDevice device) { if (portSupplier == null) { throw new ArgumentNullException("portSupplier"); } if (device == null) { throw new ArgumentNullException("device"); } m_portSupplier = portSupplier; m_portDevice = device; m_portGuid = Guid.NewGuid(); m_portProcesses = new Dictionary <uint, DebuggeeProcess> (); m_eventConnectionPoints = new Dictionary <int, IDebugPortEvents2> (); }
int IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { ppSupplier = _portSupplier; return(VSConstants.S_OK); }
int IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { throw new NotImplementedException(); }
int Microsoft.VisualStudio.Debugger.Interop.IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { ppSupplier = m_portSupplier; return(Utility.COM_HResults.S_OK); }
// Token: 0x06000146 RID: 326 RVA: 0x000059F5 File Offset: 0x00003BF5 public int GetPortSupplier(out IDebugPortSupplier2 portSupplier) { portSupplier = this.PortSupplier; return(0); }
public virtual IDebugPort2 Create( Gamelet gamelet, IDebugPortSupplier2 supplier, string debugSessionId) => new DebugPort(_debugProcessFactory, _processListRequestFactory, _cancelableTaskFactory, _dialogUtil, _sshManager, _metrics, gamelet, supplier, debugSessionId, _developerAccount);
public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { throw new NotImplementedException(); }
/// <summary> /// Gets the port supplier for this port. /// </summary> public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { DLog.Debug(DContext.VSDebuggerComCall, "DebugPort.GetPortSupplier"); ppSupplier = supplier; return VSConstants.S_OK; }
/// <summary> /// Gets the port supplier for this port. /// </summary> public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { DLog.Debug(DContext.VSDebuggerComCall, "DebugPort.GetPortSupplier"); ppSupplier = supplier; return(VSConstants.S_OK); }
int Microsoft.VisualStudio.Debugger.Interop.IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { ppSupplier = m_portSupplier; return Utility.COM_HResults.S_OK; }
public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { ppSupplier = supplier; return(Microsoft.VisualStudio.VSConstants.S_OK); }
/// <summary> /// Gets the port supplier for this port. /// </summary> /// <param name="ppSupplier">Returns an IDebugPortSupplier2 object represents the port supplier for a port.</param> /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns> public virtual int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { Logger.Debug(string.Empty); ppSupplier = null; return(VSConstants.E_NOTIMPL); }
public EmuliciousPort(IDebugPortSupplier2 supplier) { portGuid = new Guid(); }
public int GetPortSupplier(out IDebugPortSupplier2 portSupplier) { portSupplier = _portSupplier; return HR.S_OK; }
public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { throw new NotImplementedTestDoubleException(); }
public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { ppSupplier = _supplier; return(VSConstants.S_OK); }
public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) { ppSupplier = _supplier; return VSConstants.S_OK; }
public int GetPortSupplier(out IDebugPortSupplier2 portSupplier) { portSupplier = _portSupplier; return(HR.S_OK); }
/// <summary> /// Gets the port supplier for this port. /// </summary> /// <param name="ppSupplier">Returns an IDebugPortSupplier2 object represents the port supplier for a port.</param> /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns> public virtual int GetPortSupplier( out IDebugPortSupplier2 ppSupplier ) { Logger.Debug( string.Empty ); ppSupplier = null; return VSConstants.E_NOTIMPL; }