Example #1
0
        public static string GetSessionId(IChannelHandlerContext context)
        {
            string keyCode = context.GetHashCode().ToNotNullString();

            return(string.Format("s_{0}_{1}_{2}", keyCode, GameEnvironment.AppConfig.GameId, GameEnvironment.AppConfig.ServerId));
        }