Beispiel #1
0
        public TransportPipe(SessionPipe pipe)
        {
            this.pipe = pipe;
            this.pipe.OnConnectedCallback     = OnConnected;
            this.pipe.OnDisconnectedCallback  = OnDisconnected;
            this.pipe.OnSendCompletedCallback = OnSendCompleted;
            this.pipe.OnReceiveCallback       = OnReceive;
            this.pipe.OnExceptionCallback     = OnException;
            SessionId = pipe.SessionId;

            if (!ThreadPool.QueueUserWorkItem(SendDataThread))
            {
                throw new OverflowException();
            }
        }
Beispiel #2
0
 public void OnSessionConnected(SessionPipe pipe)
 {
     this.pipe = pipe;
 }
Beispiel #3
0
 public void OnSessionClosed(SessionPipe pipe)
 {
 }
Beispiel #4
0
 public SessionContext(SessionPipe pipe)
 {
     this.pipe = pipe;
 }