Free cookie consent management tool by TermsFeed Policy Generator

source: branches/CEDMA-Refactoring-Ticket419/HeuristicLab.Hive.Client.Console/ServerProxy.cs @ 1041

Last change on this file since 1041 was 911, checked in by whackl, 16 years ago

bug fixed (#397)

File size: 13.5 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Hive.Client.Console {
7  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
8  [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "IClientConsoleCommunicator")]
9  public interface IClientConsoleCommunicator {
10
11    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")]
12    HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons GetStatusInfos();
13
14    [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")]
15    System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState);
16
17    HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons EndGetStatusInfos(System.IAsyncResult result);
18
19    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")]
20    HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer GetConnection();
21
22    [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")]
23    System.IAsyncResult BeginGetConnection(System.AsyncCallback callback, object asyncState);
24
25    HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer EndGetConnection(System.IAsyncResult result);
26
27    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")]
28    void SetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container);
29
30    [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")]
31    System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container, System.AsyncCallback callback, object asyncState);
32
33    void EndSetConnection(System.IAsyncResult result);
34  }
35
36  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
37  public interface IClientConsoleCommunicatorChannel : IClientConsoleCommunicator, System.ServiceModel.IClientChannel {
38  }
39
40  [System.Diagnostics.DebuggerStepThroughAttribute()]
41  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
42  public partial class GetStatusInfosCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
43
44    private object[] results;
45
46    public GetStatusInfosCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
47      base(exception, cancelled, userState) {
48      this.results = results;
49    }
50
51    public HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons Result {
52      get {
53        base.RaiseExceptionIfNecessary();
54        return ((HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons)(this.results[0]));
55      }
56    }
57  }
58
59  [System.Diagnostics.DebuggerStepThroughAttribute()]
60  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
61  public partial class GetConnectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
62
63    private object[] results;
64
65    public GetConnectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
66      base(exception, cancelled, userState) {
67      this.results = results;
68    }
69
70    public HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer Result {
71      get {
72        base.RaiseExceptionIfNecessary();
73        return ((HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer)(this.results[0]));
74      }
75    }
76  }
77
78  [System.Diagnostics.DebuggerStepThroughAttribute()]
79  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
80  public partial class ClientConsoleCommunicatorClient : System.ServiceModel.ClientBase<IClientConsoleCommunicator>, IClientConsoleCommunicator {
81
82    private BeginOperationDelegate onBeginGetStatusInfosDelegate;
83
84    private EndOperationDelegate onEndGetStatusInfosDelegate;
85
86    private System.Threading.SendOrPostCallback onGetStatusInfosCompletedDelegate;
87
88    private BeginOperationDelegate onBeginGetConnectionDelegate;
89
90    private EndOperationDelegate onEndGetConnectionDelegate;
91
92    private System.Threading.SendOrPostCallback onGetConnectionCompletedDelegate;
93
94    private BeginOperationDelegate onBeginSetConnectionDelegate;
95
96    private EndOperationDelegate onEndSetConnectionDelegate;
97
98    private System.Threading.SendOrPostCallback onSetConnectionCompletedDelegate;
99
100    public ClientConsoleCommunicatorClient() {
101    }
102
103    public ClientConsoleCommunicatorClient(string endpointConfigurationName) :
104      base(endpointConfigurationName) {
105    }
106
107    public ClientConsoleCommunicatorClient(string endpointConfigurationName, string remoteAddress) :
108      base(endpointConfigurationName, remoteAddress) {
109    }
110
111    public ClientConsoleCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
112      base(endpointConfigurationName, remoteAddress) {
113    }
114
115    public ClientConsoleCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
116      base(binding, remoteAddress) {
117    }
118
119    public event System.EventHandler<GetStatusInfosCompletedEventArgs> GetStatusInfosCompleted;
120
121    public event System.EventHandler<GetConnectionCompletedEventArgs> GetConnectionCompleted;
122
123    public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetConnectionCompleted;
124
125    public HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons GetStatusInfos() {
126      return base.Channel.GetStatusInfos();
127    }
128
129    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
130    public System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState) {
131      return base.Channel.BeginGetStatusInfos(callback, asyncState);
132    }
133
134    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
135    public HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons EndGetStatusInfos(System.IAsyncResult result) {
136      return base.Channel.EndGetStatusInfos(result);
137    }
138
139    private System.IAsyncResult OnBeginGetStatusInfos(object[] inValues, System.AsyncCallback callback, object asyncState) {
140      return this.BeginGetStatusInfos(callback, asyncState);
141    }
142
143    private object[] OnEndGetStatusInfos(System.IAsyncResult result) {
144      HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons retVal = this.EndGetStatusInfos(result);
145      return new object[] {
146                retVal};
147    }
148
149    private void OnGetStatusInfosCompleted(object state) {
150      if ((this.GetStatusInfosCompleted != null)) {
151        InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
152        this.GetStatusInfosCompleted(this, new GetStatusInfosCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
153      }
154    }
155
156    public void GetStatusInfosAsync() {
157      this.GetStatusInfosAsync(null);
158    }
159
160    public void GetStatusInfosAsync(object userState) {
161      if ((this.onBeginGetStatusInfosDelegate == null)) {
162        this.onBeginGetStatusInfosDelegate = new BeginOperationDelegate(this.OnBeginGetStatusInfos);
163      }
164      if ((this.onEndGetStatusInfosDelegate == null)) {
165        this.onEndGetStatusInfosDelegate = new EndOperationDelegate(this.OnEndGetStatusInfos);
166      }
167      if ((this.onGetStatusInfosCompletedDelegate == null)) {
168        this.onGetStatusInfosCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusInfosCompleted);
169      }
170      base.InvokeAsync(this.onBeginGetStatusInfosDelegate, null, this.onEndGetStatusInfosDelegate, this.onGetStatusInfosCompletedDelegate, userState);
171    }
172
173    public HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer GetConnection() {
174      return base.Channel.GetConnection();
175    }
176
177    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
178    public System.IAsyncResult BeginGetConnection(System.AsyncCallback callback, object asyncState) {
179      return base.Channel.BeginGetConnection(callback, asyncState);
180    }
181
182    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
183    public HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer EndGetConnection(System.IAsyncResult result) {
184      return base.Channel.EndGetConnection(result);
185    }
186
187    private System.IAsyncResult OnBeginGetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) {
188      return this.BeginGetConnection(callback, asyncState);
189    }
190
191    private object[] OnEndGetConnection(System.IAsyncResult result) {
192      HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer retVal = this.EndGetConnection(result);
193      return new object[] {
194                retVal};
195    }
196
197    private void OnGetConnectionCompleted(object state) {
198      if ((this.GetConnectionCompleted != null)) {
199        InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
200        this.GetConnectionCompleted(this, new GetConnectionCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
201      }
202    }
203
204    public void GetConnectionAsync() {
205      this.GetConnectionAsync(null);
206    }
207
208    public void GetConnectionAsync(object userState) {
209      if ((this.onBeginGetConnectionDelegate == null)) {
210        this.onBeginGetConnectionDelegate = new BeginOperationDelegate(this.OnBeginGetConnection);
211      }
212      if ((this.onEndGetConnectionDelegate == null)) {
213        this.onEndGetConnectionDelegate = new EndOperationDelegate(this.OnEndGetConnection);
214      }
215      if ((this.onGetConnectionCompletedDelegate == null)) {
216        this.onGetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetConnectionCompleted);
217      }
218      base.InvokeAsync(this.onBeginGetConnectionDelegate, null, this.onEndGetConnectionDelegate, this.onGetConnectionCompletedDelegate, userState);
219    }
220
221    public void SetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container) {
222      base.Channel.SetConnection(container);
223    }
224
225    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
226    public System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container, System.AsyncCallback callback, object asyncState) {
227      return base.Channel.BeginSetConnection(container, callback, asyncState);
228    }
229
230    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
231    public void EndSetConnection(System.IAsyncResult result) {
232      base.Channel.EndSetConnection(result);
233    }
234
235    private System.IAsyncResult OnBeginSetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) {
236      HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container = ((HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer)(inValues[0]));
237      return this.BeginSetConnection(container, callback, asyncState);
238    }
239
240    private object[] OnEndSetConnection(System.IAsyncResult result) {
241      this.EndSetConnection(result);
242      return null;
243    }
244
245    private void OnSetConnectionCompleted(object state) {
246      if ((this.SetConnectionCompleted != null)) {
247        InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
248        this.SetConnectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
249      }
250    }
251
252    public void SetConnectionAsync(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container) {
253      this.SetConnectionAsync(container, null);
254    }
255
256    public void SetConnectionAsync(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container, object userState) {
257      if ((this.onBeginSetConnectionDelegate == null)) {
258        this.onBeginSetConnectionDelegate = new BeginOperationDelegate(this.OnBeginSetConnection);
259      }
260      if ((this.onEndSetConnectionDelegate == null)) {
261        this.onEndSetConnectionDelegate = new EndOperationDelegate(this.OnEndSetConnection);
262      }
263      if ((this.onSetConnectionCompletedDelegate == null)) {
264        this.onSetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetConnectionCompleted);
265      }
266      base.InvokeAsync(this.onBeginSetConnectionDelegate, new object[] {
267                    container}, this.onEndSetConnectionDelegate, this.onSetConnectionCompletedDelegate, userState);
268    }
269  }
270}
Note: See TracBrowser for help on using the repository browser.