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)); }
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); }