コード例 #1
0
 public System.IAsyncResult BeginAddPlayer(PhoneApp1.ServiceReference1.Player pl, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[1];
     _args[0] = pl;
     System.IAsyncResult _result = base.BeginInvoke("AddPlayer", _args, callback, asyncState);
     return(_result);
 }
コード例 #2
0
        private System.IAsyncResult OnBeginCreateLobby(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            PhoneApp1.ServiceReference1.Player host = ((PhoneApp1.ServiceReference1.Player)(inValues[0]));
            int lobby = ((int)(inValues[1]));

            return(((PhoneApp1.ServiceReference1.IService1)(this)).BeginCreateLobby(host, lobby, callback, asyncState));
        }
コード例 #3
0
 public System.IAsyncResult BeginCreateLobby(PhoneApp1.ServiceReference1.Player host, int lobby, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[2];
     _args[0] = host;
     _args[1] = lobby;
     System.IAsyncResult _result = base.BeginInvoke("CreateLobby", _args, callback, asyncState);
     return(_result);
 }
コード例 #4
0
 public void AddPlayerAsync(PhoneApp1.ServiceReference1.Player pl, object userState)
 {
     if ((this.onBeginAddPlayerDelegate == null))
     {
         this.onBeginAddPlayerDelegate = new BeginOperationDelegate(this.OnBeginAddPlayer);
     }
     if ((this.onEndAddPlayerDelegate == null))
     {
         this.onEndAddPlayerDelegate = new EndOperationDelegate(this.OnEndAddPlayer);
     }
     if ((this.onAddPlayerCompletedDelegate == null))
     {
         this.onAddPlayerCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnAddPlayerCompleted);
     }
     base.InvokeAsync(this.onBeginAddPlayerDelegate, new object[] {
         pl
     }, this.onEndAddPlayerDelegate, this.onAddPlayerCompletedDelegate, userState);
 }
コード例 #5
0
 public void CreateLobbyAsync(PhoneApp1.ServiceReference1.Player host, int lobby, object userState)
 {
     if ((this.onBeginCreateLobbyDelegate == null))
     {
         this.onBeginCreateLobbyDelegate = new BeginOperationDelegate(this.OnBeginCreateLobby);
     }
     if ((this.onEndCreateLobbyDelegate == null))
     {
         this.onEndCreateLobbyDelegate = new EndOperationDelegate(this.OnEndCreateLobby);
     }
     if ((this.onCreateLobbyCompletedDelegate == null))
     {
         this.onCreateLobbyCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCreateLobbyCompleted);
     }
     base.InvokeAsync(this.onBeginCreateLobbyDelegate, new object[] {
         host,
         lobby
     }, this.onEndCreateLobbyDelegate, this.onCreateLobbyCompletedDelegate, userState);
 }
コード例 #6
0
 public void AddPlayerAsync(PhoneApp1.ServiceReference1.Player pl)
 {
     this.AddPlayerAsync(pl, null);
 }
コード例 #7
0
 private System.IAsyncResult OnBeginAddPlayer(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     PhoneApp1.ServiceReference1.Player pl = ((PhoneApp1.ServiceReference1.Player)(inValues[0]));
     return(((PhoneApp1.ServiceReference1.IService1)(this)).BeginAddPlayer(pl, callback, asyncState));
 }
コード例 #8
0
 System.IAsyncResult PhoneApp1.ServiceReference1.IService1.BeginAddPlayer(PhoneApp1.ServiceReference1.Player pl, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginAddPlayer(pl, callback, asyncState));
 }
コード例 #9
0
 public void CreateLobbyAsync(PhoneApp1.ServiceReference1.Player host, int lobby)
 {
     this.CreateLobbyAsync(host, lobby, null);
 }
コード例 #10
0
 System.IAsyncResult PhoneApp1.ServiceReference1.IService1.BeginCreateLobby(PhoneApp1.ServiceReference1.Player host, int lobby, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginCreateLobby(host, lobby, callback, asyncState));
 }