예제 #1
0
        public void AddTakenSeat(int showId, int seatId, string userName)
        {
            var id = Context.ConnectionId;

            UserSeatManager.AddTakenSeat(showId, seatId, id);
            var methodName = "recievedAddedTakenSeat";

            SendToAll(showId, methodName, new object[] { seatId, userName });
        }
예제 #2
0
        private void releaseTakenSeats(string userId, int showId)
        {
            var takenSeatsArr = UserSeatManager.ReleaseTakenSeats(showId, userId);

            if (takenSeatsArr != null)
            {
                var methodName = "releaseTakenSeats";
                SendToAll(showId, methodName, new object[] { takenSeatsArr });
            }
        }