private void OnSessionHandshaked(object sender, ActorChannelSessionHandshakedEventArgs e) { if (ChannelConnected != null) { ChannelConnected(this, new ActorChannelConnectedEventArgs(this.Identifier, e.RemoteActor)); } }
private void OnSessionHandshaked(object sender, ActorChannelSessionHandshakedEventArgs e) { _remoteActors.Add(e.SessionKey, e.RemoteActor); _actorKeys.Add(e.RemoteActor.GetKey(), e.SessionKey); if (Connected != null) { Connected(this, new ActorConnectedEventArgs(e.SessionKey, e.RemoteActor)); } }