Exemple #1
0
 private void WriteActivated(object sender, PipeEventArgs e)
 {
     m_protocol.OnWriteActivated(e.Pipe);
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 private void ReadActivated(object sender, PipeEventArgs e)
 {
     m_protocol.OnReadActivated(e.Pipe);
 }
Exemple #4
0
 private void Hiccuped(object sender, PipeEventArgs e)
 {
     m_protocol.OnHiccuped(e.Pipe);
 }