コード例 #1
0
ファイル: SessionManager.cs プロジェクト: Jesse1205/PlusGame
        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));
        }