コード例 #1
0
        private void throwPlayerNotFoundInGameFault(int gameId, string Player)
        {
            GameNotFoundFault fault = new GameNotFoundFault()
            {
                Message = "Player: " + Player + " not found in game: " + gameId
            };

            throw new FaultException <GameNotFoundFault>(fault);
        }
コード例 #2
0
        private void throwGameNotFoundFault(int gameId)
        {
            GameNotFoundFault fault = new GameNotFoundFault()
            {
                Message = "gameId " + gameId + " not found"
            };

            throw new FaultException <GameNotFoundFault>(fault);
        }