private void ExecuteOnReceive(PhotonHttpPeer peer, byte[] data, int?invocationId) { if (log.IsDebugEnabled) { log.DebugFormat("Execute request: peerId={0}, invocationId={1}", new object[] { peer.PeerId, invocationId }); } this.photonApplication.OnReceive(peer, peer.GetUserData(), data, MessageReliablity.Reliable, 0, MessageContentType.Binary, 0, 0, 0); }
private void OnPeerCachePeerExpired(PhotonHttpPeer httpPeer) { if (log.IsDebugEnabled) { log.DebugFormat("Peer expired: id={0}", new object[] { httpPeer.PeerId }); } this.photonApplication.OnDisconnect(httpPeer, httpPeer.GetUserData(), DisconnectReason.ManagedDisconnect, string.Empty, 0, 0, 0); }
internal void DisconnectPeer(PhotonHttpPeer httpPeer) { this.photonApplication.OnDisconnect(httpPeer, httpPeer.GetUserData(), DisconnectReason.ManagedDisconnect, string.Empty, 0, 0, 0); this.peerCache.RemovePeer(httpPeer.PeerId); }