예제 #1
0
 private void OnSessionHandshaked(object sender, ActorChannelSessionHandshakedEventArgs e)
 {
     if (ChannelConnected != null)
     {
         ChannelConnected(this, new ActorChannelConnectedEventArgs(this.Identifier, e.RemoteActor));
     }
 }
예제 #2
0
        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));
            }
        }