Ejemplo n.º 1
0
        public static IAsyncResult BeginJoinInvited(
            int maxLocalGamers,
            AsyncCallback callback,
            Object asyncState)
        {
            if (maxLocalGamers < 1 || maxLocalGamers > 4)
            {
                throw new ArgumentOutOfRangeException("maxLocalGamers must be between 1 and 4.");
            }

            try {
                NetworkSessionAsynchronousJoinInvited AsynchronousJoinInvited = new NetworkSessionAsynchronousJoinInvited(JoinInvited);
                return(AsynchronousJoinInvited.BeginInvoke(maxLocalGamers, callback, asyncState));
            } finally {
            }
        }
Ejemplo n.º 2
0
		public static IAsyncResult BeginJoinInvited (
			int maxLocalGamers,
			AsyncCallback callback,
			Object asyncState)
		{
			if (maxLocalGamers < 1 || maxLocalGamers > 4)
				throw new ArgumentOutOfRangeException ( "maxLocalGamers must be between 1 and 4." );

			try {
				NetworkSessionAsynchronousJoinInvited AsynchronousJoinInvited = new NetworkSessionAsynchronousJoinInvited (JoinInvited);
				return AsynchronousJoinInvited.BeginInvoke (maxLocalGamers, callback, asyncState);
			} finally {
			}
		}