Пример #1
0
        private System.IAsyncResult OnBeginJoinGame(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            string gameIdToJoin = ((string)(inValues[0]));

            SchinkZeShips.Core.SchinkZeShipsReference.Player player = ((SchinkZeShips.Core.SchinkZeShipsReference.Player)(inValues[1]));
            return(((SchinkZeShips.Core.SchinkZeShipsReference.ISchinkZeShips)(this)).BeginJoinGame(gameIdToJoin, player, callback, asyncState));
        }
Пример #2
0
        private System.IAsyncResult OnBeginCreateGame(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            SchinkZeShips.Core.SchinkZeShipsReference.Player creator = ((SchinkZeShips.Core.SchinkZeShipsReference.Player)(inValues[0]));
            string gameName = ((string)(inValues[1]));

            return(((SchinkZeShips.Core.SchinkZeShipsReference.ISchinkZeShips)(this)).BeginCreateGame(creator, gameName, callback, asyncState));
        }
Пример #3
0
 public System.IAsyncResult BeginJoinGame(string gameIdToJoin, SchinkZeShips.Core.SchinkZeShipsReference.Player player, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[2];
     _args[0] = gameIdToJoin;
     _args[1] = player;
     System.IAsyncResult _result = base.BeginInvoke("JoinGame", _args, callback, asyncState);
     return(_result);
 }
Пример #4
0
 public System.IAsyncResult BeginCreateGame(SchinkZeShips.Core.SchinkZeShipsReference.Player creator, string gameName, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[2];
     _args[0] = creator;
     _args[1] = gameName;
     System.IAsyncResult _result = base.BeginInvoke("CreateGame", _args, callback, asyncState);
     return(_result);
 }
Пример #5
0
 public void JoinGameAsync(string gameIdToJoin, SchinkZeShips.Core.SchinkZeShipsReference.Player player, object userState)
 {
     if ((this.onBeginJoinGameDelegate == null))
     {
         this.onBeginJoinGameDelegate = new BeginOperationDelegate(this.OnBeginJoinGame);
     }
     if ((this.onEndJoinGameDelegate == null))
     {
         this.onEndJoinGameDelegate = new EndOperationDelegate(this.OnEndJoinGame);
     }
     if ((this.onJoinGameCompletedDelegate == null))
     {
         this.onJoinGameCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnJoinGameCompleted);
     }
     base.InvokeAsync(this.onBeginJoinGameDelegate, new object[] {
         gameIdToJoin,
         player
     }, this.onEndJoinGameDelegate, this.onJoinGameCompletedDelegate, userState);
 }
Пример #6
0
 public void CreateGameAsync(SchinkZeShips.Core.SchinkZeShipsReference.Player creator, string gameName, object userState)
 {
     if ((this.onBeginCreateGameDelegate == null))
     {
         this.onBeginCreateGameDelegate = new BeginOperationDelegate(this.OnBeginCreateGame);
     }
     if ((this.onEndCreateGameDelegate == null))
     {
         this.onEndCreateGameDelegate = new EndOperationDelegate(this.OnEndCreateGame);
     }
     if ((this.onCreateGameCompletedDelegate == null))
     {
         this.onCreateGameCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCreateGameCompleted);
     }
     base.InvokeAsync(this.onBeginCreateGameDelegate, new object[] {
         creator,
         gameName
     }, this.onEndCreateGameDelegate, this.onCreateGameCompletedDelegate, userState);
 }
Пример #7
0
 public void JoinGameAsync(string gameIdToJoin, SchinkZeShips.Core.SchinkZeShipsReference.Player player)
 {
     this.JoinGameAsync(gameIdToJoin, player, null);
 }
Пример #8
0
 System.IAsyncResult SchinkZeShips.Core.SchinkZeShipsReference.ISchinkZeShips.BeginJoinGame(string gameIdToJoin, SchinkZeShips.Core.SchinkZeShipsReference.Player player, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginJoinGame(gameIdToJoin, player, callback, asyncState));
 }
Пример #9
0
 public void CreateGameAsync(SchinkZeShips.Core.SchinkZeShipsReference.Player creator, string gameName)
 {
     this.CreateGameAsync(creator, gameName, null);
 }
Пример #10
0
 System.IAsyncResult SchinkZeShips.Core.SchinkZeShipsReference.ISchinkZeShips.BeginCreateGame(SchinkZeShips.Core.SchinkZeShipsReference.Player creator, string gameName, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginCreateGame(creator, gameName, callback, asyncState));
 }