private void WriteActivated(object sender, PipeEventArgs e) { m_protocol.OnWriteActivated(e.Pipe); }
private void PipeClosed(object sender, PipeEventArgs e) { m_protocol.OnPipeClosed(e.Pipe); bool found = false; string foundAddress = ""; // Remove pipe from inproc pipes foreach (var inprocPipe in m_inprocs) { if (inprocPipe.Value == e.Pipe) { found = true; foundAddress = inprocPipe.Key; break; } } if (found) m_inprocs.Remove(foundAddress); // Unregister to pipe events e.Pipe.PipeClosed -= PipeClosed; e.Pipe.WriteActivated -= WriteActivated; e.Pipe.ReadActivated -= ReadActivated; e.Pipe.Hiccuped -= Hiccuped; // Remove the pipe from the list of attached pipes and confirm its // dispose if we are already disposing. m_pipes.Remove(e.Pipe); if (IsClosing) UnregisterCloseAck(); }
private void ReadActivated(object sender, PipeEventArgs e) { m_protocol.OnReadActivated(e.Pipe); }
private void Hiccuped(object sender, PipeEventArgs e) { m_protocol.OnHiccuped(e.Pipe); }