public void BroadcastDistributedObjectUpdateMessageToZone(Message message, DistributedObjectId serverDistributedObjectId) { ZoneId zoneId = this.GetZone(serverDistributedObjectId); List <Guid> sessionIdsToSendMessage = mServerStateMachine.SessionManager.GetSessionIdsInterestedInZoneId(zoneId); mServerStateMachine.SendMessageToReflector(message, sessionIdsToSendMessage); }
/// <summary> /// Send message back to channel corresponding to the provided sessionId. Usually this is the sessionId that sent the original request /// </summary> /// <param name="message"></param> /// <param name="sessionId"></param> protected void SendMessageToClient(Message message, Guid sessionId) { mServerStateMachine.SendMessageToReflector(message, sessionId); }