Example #1
0
        private void OnTransportConnected(object sender, ActorTransportSessionConnectedEventArgs e)
        {
            var session = new ActorSessionChannel(_localActor, _channelConfiguration, e.Session);

            OpenSession(session);
            _sessions.Add(session.SessionKey, new SessionItem(session.SessionKey, session));
        }
Example #2
0
        private void OnConnected(object sender, ActorTransportSessionConnectedEventArgs e)
        {
            var session = new ActorChannelSession(_localActor, _channelConfiguration, e.Session);

            session.Handshaked   += OnSessionHandshaked;
            session.DataReceived += OnSessionDataReceived;
            _sessions.Add(session.SessionKey, session);
        }