Changeset 1087 for trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/Reference.cs
- Timestamp:
- 01/07/09 16:52:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/Reference.cs
r1002 r1087 353 353 354 354 HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result); 355 356 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse")] 357 void ShutdownClient(); 358 359 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse")] 360 System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState); 361 362 void EndShutdownClient(System.IAsyncResult result); 355 363 } 356 364 … … 450 458 private System.Threading.SendOrPostCallback onGetCurrentConnectionCompletedDelegate; 451 459 460 private BeginOperationDelegate onBeginShutdownClientDelegate; 461 462 private EndOperationDelegate onEndShutdownClientDelegate; 463 464 private System.Threading.SendOrPostCallback onShutdownClientCompletedDelegate; 465 452 466 public ClientConsoleCommunicatorClient() { 453 467 } … … 478 492 479 493 public event System.EventHandler<GetCurrentConnectionCompletedEventArgs> GetCurrentConnectionCompleted; 494 495 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShutdownClientCompleted; 480 496 481 497 public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons GetStatusInfos() { … … 718 734 base.InvokeAsync(this.onBeginGetCurrentConnectionDelegate, null, this.onEndGetCurrentConnectionDelegate, this.onGetCurrentConnectionCompletedDelegate, userState); 719 735 } 736 737 public void ShutdownClient() { 738 base.Channel.ShutdownClient(); 739 } 740 741 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 742 public System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState) { 743 return base.Channel.BeginShutdownClient(callback, asyncState); 744 } 745 746 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 747 public void EndShutdownClient(System.IAsyncResult result) { 748 base.Channel.EndShutdownClient(result); 749 } 750 751 private System.IAsyncResult OnBeginShutdownClient(object[] inValues, System.AsyncCallback callback, object asyncState) { 752 return this.BeginShutdownClient(callback, asyncState); 753 } 754 755 private object[] OnEndShutdownClient(System.IAsyncResult result) { 756 this.EndShutdownClient(result); 757 return null; 758 } 759 760 private void OnShutdownClientCompleted(object state) { 761 if ((this.ShutdownClientCompleted != null)) { 762 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 763 this.ShutdownClientCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 764 } 765 } 766 767 public void ShutdownClientAsync() { 768 this.ShutdownClientAsync(null); 769 } 770 771 public void ShutdownClientAsync(object userState) { 772 if ((this.onBeginShutdownClientDelegate == null)) { 773 this.onBeginShutdownClientDelegate = new BeginOperationDelegate(this.OnBeginShutdownClient); 774 } 775 if ((this.onEndShutdownClientDelegate == null)) { 776 this.onEndShutdownClientDelegate = new EndOperationDelegate(this.OnEndShutdownClient); 777 } 778 if ((this.onShutdownClientCompletedDelegate == null)) { 779 this.onShutdownClientCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnShutdownClientCompleted); 780 } 781 base.InvokeAsync(this.onBeginShutdownClientDelegate, null, this.onEndShutdownClientDelegate, this.onShutdownClientCompletedDelegate, userState); 782 } 720 783 } 721 784 }
Note: See TracChangeset
for help on using the changeset viewer.