private System.IAsyncResult OnBeginCreateLobby(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            WpfApplication1.ServiceReference1.Player host = ((WpfApplication1.ServiceReference1.Player)(inValues[0]));
            int lobby = ((int)(inValues[1]));

            return(this.BeginCreateLobby(host, lobby, callback, asyncState));
        }
 private object[] OnEndAddPlayer(System.IAsyncResult result)
 {
     WpfApplication1.ServiceReference1.Player retVal = this.EndAddPlayer(result);
     return(new object[] {
         retVal
     });
 }
 public void AddPlayerAsync(WpfApplication1.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);
 }
 public void CreateLobbyAsync(WpfApplication1.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);
 }
 public void AddPlayerAsync(WpfApplication1.ServiceReference1.Player pl)
 {
     this.AddPlayerAsync(pl, null);
 }
 private System.IAsyncResult OnBeginAddPlayer(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     WpfApplication1.ServiceReference1.Player pl = ((WpfApplication1.ServiceReference1.Player)(inValues[0]));
     return(this.BeginAddPlayer(pl, callback, asyncState));
 }
 public System.IAsyncResult BeginAddPlayer(WpfApplication1.ServiceReference1.Player pl, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginAddPlayer(pl, callback, asyncState));
 }
 public WpfApplication1.ServiceReference1.Player AddPlayer(WpfApplication1.ServiceReference1.Player pl)
 {
     return(base.Channel.AddPlayer(pl));
 }
 public void CreateLobbyAsync(WpfApplication1.ServiceReference1.Player host, int lobby)
 {
     this.CreateLobbyAsync(host, lobby, null);
 }
 public System.IAsyncResult BeginCreateLobby(WpfApplication1.ServiceReference1.Player host, int lobby, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginCreateLobby(host, lobby, callback, asyncState));
 }
 public void CreateLobby(WpfApplication1.ServiceReference1.Player host, int lobby)
 {
     base.Channel.CreateLobby(host, lobby);
 }