/// <summary> /// Initializes a new instance of the <see cref="TcpConnectionInformationEx" /> class. /// </summary> /// <param name="src">The source.</param> protected TcpConnectionInformationEx(TcpConnectionInformationEx src) { _remote = src._remote; _local = src._local; _state = src._state; _pid = src._pid; }
/// <summary> /// Initializes a new instance of the <see cref="TcpConnectionInformationEx" /> class. /// </summary> /// <param name="src">The source.</param> protected TcpConnectionInformationEx(TcpConnectionInformationEx src) { _remote = src._remote; _local = src._local; _state = src._state; _pid = src._pid; }
/// <summary> /// Initializes a new instance of the <see cref="ViewTcpConnectionInformationEx"/> class. /// </summary> /// <param name="src">An instance of TcpConnectionInformationEx.</param> public ViewTcpConnectionInformationEx(TcpConnectionInformationEx src) : base(src) { _process = new Lazy<Process>(() => { try { return _process_cache[ProcessId]; } catch (ArgumentException) { // processId パラメーターで指定されたプロセスは実行されていません。 ID の有効期限が切れている可能性があります。 _process_cache[ProcessId] = null; return null; } catch (InvalidOperationException) { // プロセスが、このオブジェクトによって開始されなかった。 throw; } }); }