1 | //------------------------------------------------------------------------------
|
---|
2 | // <auto-generated>
|
---|
3 | // This code was generated by a tool.
|
---|
4 | // Runtime Version:2.0.50727.3082
|
---|
5 | //
|
---|
6 | // Changes to this file may cause incorrect behavior and will be lost if
|
---|
7 | // the code is regenerated.
|
---|
8 | // </auto-generated>
|
---|
9 | //------------------------------------------------------------------------------
|
---|
10 |
|
---|
11 | namespace HeuristicLab.Hive.Client.Console.ClientService {
|
---|
12 | using System.Runtime.Serialization;
|
---|
13 | using System;
|
---|
14 |
|
---|
15 |
|
---|
16 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
17 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
---|
18 | [System.Runtime.Serialization.DataContractAttribute(Name="StatusCommons", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConso" +
|
---|
19 | "leService")]
|
---|
20 | [System.SerializableAttribute()]
|
---|
21 | public partial class StatusCommons : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
---|
22 |
|
---|
23 | [System.NonSerializedAttribute()]
|
---|
24 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
---|
25 |
|
---|
26 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
27 | private System.Guid ClientGuidField;
|
---|
28 |
|
---|
29 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
30 | private System.DateTime ConnectedSinceField;
|
---|
31 |
|
---|
32 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
33 | private HeuristicLab.Hive.Client.Console.ClientService.JobStatus[] JobsField;
|
---|
34 |
|
---|
35 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
36 | private int JobsAbortedField;
|
---|
37 |
|
---|
38 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
39 | private int JobsDoneField;
|
---|
40 |
|
---|
41 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
42 | private int JobsFetchedField;
|
---|
43 |
|
---|
44 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
45 | private HeuristicLab.Hive.Client.Console.ClientService.NetworkEnumWcfConnState StatusField;
|
---|
46 |
|
---|
47 | [global::System.ComponentModel.BrowsableAttribute(false)]
|
---|
48 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
---|
49 | get {
|
---|
50 | return this.extensionDataField;
|
---|
51 | }
|
---|
52 | set {
|
---|
53 | this.extensionDataField = value;
|
---|
54 | }
|
---|
55 | }
|
---|
56 |
|
---|
57 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
58 | public System.Guid ClientGuid {
|
---|
59 | get {
|
---|
60 | return this.ClientGuidField;
|
---|
61 | }
|
---|
62 | set {
|
---|
63 | if ((this.ClientGuidField.Equals(value) != true)) {
|
---|
64 | this.ClientGuidField = value;
|
---|
65 | this.RaisePropertyChanged("ClientGuid");
|
---|
66 | }
|
---|
67 | }
|
---|
68 | }
|
---|
69 |
|
---|
70 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
71 | public System.DateTime ConnectedSince {
|
---|
72 | get {
|
---|
73 | return this.ConnectedSinceField;
|
---|
74 | }
|
---|
75 | set {
|
---|
76 | if ((this.ConnectedSinceField.Equals(value) != true)) {
|
---|
77 | this.ConnectedSinceField = value;
|
---|
78 | this.RaisePropertyChanged("ConnectedSince");
|
---|
79 | }
|
---|
80 | }
|
---|
81 | }
|
---|
82 |
|
---|
83 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
84 | public HeuristicLab.Hive.Client.Console.ClientService.JobStatus[] Jobs {
|
---|
85 | get {
|
---|
86 | return this.JobsField;
|
---|
87 | }
|
---|
88 | set {
|
---|
89 | if ((object.ReferenceEquals(this.JobsField, value) != true)) {
|
---|
90 | this.JobsField = value;
|
---|
91 | this.RaisePropertyChanged("Jobs");
|
---|
92 | }
|
---|
93 | }
|
---|
94 | }
|
---|
95 |
|
---|
96 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
97 | public int JobsAborted {
|
---|
98 | get {
|
---|
99 | return this.JobsAbortedField;
|
---|
100 | }
|
---|
101 | set {
|
---|
102 | if ((this.JobsAbortedField.Equals(value) != true)) {
|
---|
103 | this.JobsAbortedField = value;
|
---|
104 | this.RaisePropertyChanged("JobsAborted");
|
---|
105 | }
|
---|
106 | }
|
---|
107 | }
|
---|
108 |
|
---|
109 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
110 | public int JobsDone {
|
---|
111 | get {
|
---|
112 | return this.JobsDoneField;
|
---|
113 | }
|
---|
114 | set {
|
---|
115 | if ((this.JobsDoneField.Equals(value) != true)) {
|
---|
116 | this.JobsDoneField = value;
|
---|
117 | this.RaisePropertyChanged("JobsDone");
|
---|
118 | }
|
---|
119 | }
|
---|
120 | }
|
---|
121 |
|
---|
122 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
123 | public int JobsFetched {
|
---|
124 | get {
|
---|
125 | return this.JobsFetchedField;
|
---|
126 | }
|
---|
127 | set {
|
---|
128 | if ((this.JobsFetchedField.Equals(value) != true)) {
|
---|
129 | this.JobsFetchedField = value;
|
---|
130 | this.RaisePropertyChanged("JobsFetched");
|
---|
131 | }
|
---|
132 | }
|
---|
133 | }
|
---|
134 |
|
---|
135 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
136 | public HeuristicLab.Hive.Client.Console.ClientService.NetworkEnumWcfConnState Status {
|
---|
137 | get {
|
---|
138 | return this.StatusField;
|
---|
139 | }
|
---|
140 | set {
|
---|
141 | if ((this.StatusField.Equals(value) != true)) {
|
---|
142 | this.StatusField = value;
|
---|
143 | this.RaisePropertyChanged("Status");
|
---|
144 | }
|
---|
145 | }
|
---|
146 | }
|
---|
147 |
|
---|
148 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
---|
149 |
|
---|
150 | protected void RaisePropertyChanged(string propertyName) {
|
---|
151 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
---|
152 | if ((propertyChanged != null)) {
|
---|
153 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
---|
154 | }
|
---|
155 | }
|
---|
156 | }
|
---|
157 |
|
---|
158 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
159 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
---|
160 | [System.Runtime.Serialization.DataContractAttribute(Name="JobStatus", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConso" +
|
---|
161 | "leService")]
|
---|
162 | [System.SerializableAttribute()]
|
---|
163 | public partial class JobStatus : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
---|
164 |
|
---|
165 | [System.NonSerializedAttribute()]
|
---|
166 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
---|
167 |
|
---|
168 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
169 | private System.Guid JobIdField;
|
---|
170 |
|
---|
171 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
172 | private double ProgressField;
|
---|
173 |
|
---|
174 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
175 | private System.DateTime SinceField;
|
---|
176 |
|
---|
177 | [global::System.ComponentModel.BrowsableAttribute(false)]
|
---|
178 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
---|
179 | get {
|
---|
180 | return this.extensionDataField;
|
---|
181 | }
|
---|
182 | set {
|
---|
183 | this.extensionDataField = value;
|
---|
184 | }
|
---|
185 | }
|
---|
186 |
|
---|
187 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
188 | public System.Guid JobId {
|
---|
189 | get {
|
---|
190 | return this.JobIdField;
|
---|
191 | }
|
---|
192 | set {
|
---|
193 | if ((this.JobIdField.Equals(value) != true)) {
|
---|
194 | this.JobIdField = value;
|
---|
195 | this.RaisePropertyChanged("JobId");
|
---|
196 | }
|
---|
197 | }
|
---|
198 | }
|
---|
199 |
|
---|
200 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
201 | public double Progress {
|
---|
202 | get {
|
---|
203 | return this.ProgressField;
|
---|
204 | }
|
---|
205 | set {
|
---|
206 | if ((this.ProgressField.Equals(value) != true)) {
|
---|
207 | this.ProgressField = value;
|
---|
208 | this.RaisePropertyChanged("Progress");
|
---|
209 | }
|
---|
210 | }
|
---|
211 | }
|
---|
212 |
|
---|
213 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
214 | public System.DateTime Since {
|
---|
215 | get {
|
---|
216 | return this.SinceField;
|
---|
217 | }
|
---|
218 | set {
|
---|
219 | if ((this.SinceField.Equals(value) != true)) {
|
---|
220 | this.SinceField = value;
|
---|
221 | this.RaisePropertyChanged("Since");
|
---|
222 | }
|
---|
223 | }
|
---|
224 | }
|
---|
225 |
|
---|
226 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
---|
227 |
|
---|
228 | protected void RaisePropertyChanged(string propertyName) {
|
---|
229 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
---|
230 | if ((propertyChanged != null)) {
|
---|
231 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
---|
232 | }
|
---|
233 | }
|
---|
234 | }
|
---|
235 |
|
---|
236 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
---|
237 | [System.Runtime.Serialization.DataContractAttribute(Name="NetworkEnum.WcfConnState", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Common")]
|
---|
238 | public enum NetworkEnumWcfConnState : int {
|
---|
239 |
|
---|
240 | [System.Runtime.Serialization.EnumMemberAttribute()]
|
---|
241 | Connected = 0,
|
---|
242 |
|
---|
243 | [System.Runtime.Serialization.EnumMemberAttribute()]
|
---|
244 | Disconnected = 1,
|
---|
245 |
|
---|
246 | [System.Runtime.Serialization.EnumMemberAttribute()]
|
---|
247 | Failed = 2,
|
---|
248 |
|
---|
249 | [System.Runtime.Serialization.EnumMemberAttribute()]
|
---|
250 | Loggedin = 3,
|
---|
251 | }
|
---|
252 |
|
---|
253 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
254 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
---|
255 | [System.Runtime.Serialization.DataContractAttribute(Name="ConnectionContainer", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConso" +
|
---|
256 | "leService")]
|
---|
257 | [System.SerializableAttribute()]
|
---|
258 | public partial class ConnectionContainer : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
---|
259 |
|
---|
260 | [System.NonSerializedAttribute()]
|
---|
261 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
---|
262 |
|
---|
263 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
264 | private string IPAdressField;
|
---|
265 |
|
---|
266 | [System.Runtime.Serialization.OptionalFieldAttribute()]
|
---|
267 | private int PortField;
|
---|
268 |
|
---|
269 | [global::System.ComponentModel.BrowsableAttribute(false)]
|
---|
270 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
---|
271 | get {
|
---|
272 | return this.extensionDataField;
|
---|
273 | }
|
---|
274 | set {
|
---|
275 | this.extensionDataField = value;
|
---|
276 | }
|
---|
277 | }
|
---|
278 |
|
---|
279 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
280 | public string IPAdress {
|
---|
281 | get {
|
---|
282 | return this.IPAdressField;
|
---|
283 | }
|
---|
284 | set {
|
---|
285 | if ((object.ReferenceEquals(this.IPAdressField, value) != true)) {
|
---|
286 | this.IPAdressField = value;
|
---|
287 | this.RaisePropertyChanged("IPAdress");
|
---|
288 | }
|
---|
289 | }
|
---|
290 | }
|
---|
291 |
|
---|
292 | [System.Runtime.Serialization.DataMemberAttribute()]
|
---|
293 | public int Port {
|
---|
294 | get {
|
---|
295 | return this.PortField;
|
---|
296 | }
|
---|
297 | set {
|
---|
298 | if ((this.PortField.Equals(value) != true)) {
|
---|
299 | this.PortField = value;
|
---|
300 | this.RaisePropertyChanged("Port");
|
---|
301 | }
|
---|
302 | }
|
---|
303 | }
|
---|
304 |
|
---|
305 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
---|
306 |
|
---|
307 | protected void RaisePropertyChanged(string propertyName) {
|
---|
308 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
---|
309 | if ((propertyChanged != null)) {
|
---|
310 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
---|
311 | }
|
---|
312 | }
|
---|
313 | }
|
---|
314 |
|
---|
315 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
316 | [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ClientService.IClientConsoleCommunicator")]
|
---|
317 | public interface IClientConsoleCommunicator {
|
---|
318 |
|
---|
319 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")]
|
---|
320 | HeuristicLab.Hive.Client.Console.ClientService.StatusCommons GetStatusInfos();
|
---|
321 |
|
---|
322 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")]
|
---|
323 | System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState);
|
---|
324 |
|
---|
325 | HeuristicLab.Hive.Client.Console.ClientService.StatusCommons EndGetStatusInfos(System.IAsyncResult result);
|
---|
326 |
|
---|
327 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")]
|
---|
328 | void SetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container);
|
---|
329 |
|
---|
330 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")]
|
---|
331 | System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container, System.AsyncCallback callback, object asyncState);
|
---|
332 |
|
---|
333 | void EndSetConnection(System.IAsyncResult result);
|
---|
334 |
|
---|
335 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse")]
|
---|
336 | void Disconnect();
|
---|
337 |
|
---|
338 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse")]
|
---|
339 | System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState);
|
---|
340 |
|
---|
341 | void EndDisconnect(System.IAsyncResult result);
|
---|
342 |
|
---|
343 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnectionResponse")]
|
---|
344 | HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetCurrentConnection();
|
---|
345 |
|
---|
346 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnectionResponse")]
|
---|
347 | System.IAsyncResult BeginGetCurrentConnection(System.AsyncCallback callback, object asyncState);
|
---|
348 |
|
---|
349 | HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result);
|
---|
350 |
|
---|
351 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse")]
|
---|
352 | void ShutdownClient();
|
---|
353 |
|
---|
354 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse")]
|
---|
355 | System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState);
|
---|
356 |
|
---|
357 | void EndShutdownClient(System.IAsyncResult result);
|
---|
358 | }
|
---|
359 |
|
---|
360 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
361 | public interface IClientConsoleCommunicatorChannel : HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator, System.ServiceModel.IClientChannel {
|
---|
362 | }
|
---|
363 |
|
---|
364 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
365 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
366 | public partial class GetStatusInfosCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
367 |
|
---|
368 | private object[] results;
|
---|
369 |
|
---|
370 | public GetStatusInfosCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
371 | base(exception, cancelled, userState) {
|
---|
372 | this.results = results;
|
---|
373 | }
|
---|
374 |
|
---|
375 | public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons Result {
|
---|
376 | get {
|
---|
377 | base.RaiseExceptionIfNecessary();
|
---|
378 | return ((HeuristicLab.Hive.Client.Console.ClientService.StatusCommons)(this.results[0]));
|
---|
379 | }
|
---|
380 | }
|
---|
381 | }
|
---|
382 |
|
---|
383 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
384 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
385 | public partial class GetCurrentConnectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
386 |
|
---|
387 | private object[] results;
|
---|
388 |
|
---|
389 | public GetCurrentConnectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
390 | base(exception, cancelled, userState) {
|
---|
391 | this.results = results;
|
---|
392 | }
|
---|
393 |
|
---|
394 | public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer Result {
|
---|
395 | get {
|
---|
396 | base.RaiseExceptionIfNecessary();
|
---|
397 | return ((HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer)(this.results[0]));
|
---|
398 | }
|
---|
399 | }
|
---|
400 | }
|
---|
401 |
|
---|
402 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
403 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
404 | public partial class ClientConsoleCommunicatorClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator>, HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator {
|
---|
405 |
|
---|
406 | private BeginOperationDelegate onBeginGetStatusInfosDelegate;
|
---|
407 |
|
---|
408 | private EndOperationDelegate onEndGetStatusInfosDelegate;
|
---|
409 |
|
---|
410 | private System.Threading.SendOrPostCallback onGetStatusInfosCompletedDelegate;
|
---|
411 |
|
---|
412 | private BeginOperationDelegate onBeginSetConnectionDelegate;
|
---|
413 |
|
---|
414 | private EndOperationDelegate onEndSetConnectionDelegate;
|
---|
415 |
|
---|
416 | private System.Threading.SendOrPostCallback onSetConnectionCompletedDelegate;
|
---|
417 |
|
---|
418 | private BeginOperationDelegate onBeginDisconnectDelegate;
|
---|
419 |
|
---|
420 | private EndOperationDelegate onEndDisconnectDelegate;
|
---|
421 |
|
---|
422 | private System.Threading.SendOrPostCallback onDisconnectCompletedDelegate;
|
---|
423 |
|
---|
424 | private BeginOperationDelegate onBeginGetCurrentConnectionDelegate;
|
---|
425 |
|
---|
426 | private EndOperationDelegate onEndGetCurrentConnectionDelegate;
|
---|
427 |
|
---|
428 | private System.Threading.SendOrPostCallback onGetCurrentConnectionCompletedDelegate;
|
---|
429 |
|
---|
430 | private BeginOperationDelegate onBeginShutdownClientDelegate;
|
---|
431 |
|
---|
432 | private EndOperationDelegate onEndShutdownClientDelegate;
|
---|
433 |
|
---|
434 | private System.Threading.SendOrPostCallback onShutdownClientCompletedDelegate;
|
---|
435 |
|
---|
436 | public ClientConsoleCommunicatorClient() {
|
---|
437 | }
|
---|
438 |
|
---|
439 | public ClientConsoleCommunicatorClient(string endpointConfigurationName) :
|
---|
440 | base(endpointConfigurationName) {
|
---|
441 | }
|
---|
442 |
|
---|
443 | public ClientConsoleCommunicatorClient(string endpointConfigurationName, string remoteAddress) :
|
---|
444 | base(endpointConfigurationName, remoteAddress) {
|
---|
445 | }
|
---|
446 |
|
---|
447 | public ClientConsoleCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
---|
448 | base(endpointConfigurationName, remoteAddress) {
|
---|
449 | }
|
---|
450 |
|
---|
451 | public ClientConsoleCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
---|
452 | base(binding, remoteAddress) {
|
---|
453 | }
|
---|
454 |
|
---|
455 | public event System.EventHandler<GetStatusInfosCompletedEventArgs> GetStatusInfosCompleted;
|
---|
456 |
|
---|
457 | public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetConnectionCompleted;
|
---|
458 |
|
---|
459 | public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> DisconnectCompleted;
|
---|
460 |
|
---|
461 | public event System.EventHandler<GetCurrentConnectionCompletedEventArgs> GetCurrentConnectionCompleted;
|
---|
462 |
|
---|
463 | public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShutdownClientCompleted;
|
---|
464 |
|
---|
465 | public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons GetStatusInfos() {
|
---|
466 | return base.Channel.GetStatusInfos();
|
---|
467 | }
|
---|
468 |
|
---|
469 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
470 | public System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState) {
|
---|
471 | return base.Channel.BeginGetStatusInfos(callback, asyncState);
|
---|
472 | }
|
---|
473 |
|
---|
474 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
475 | public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons EndGetStatusInfos(System.IAsyncResult result) {
|
---|
476 | return base.Channel.EndGetStatusInfos(result);
|
---|
477 | }
|
---|
478 |
|
---|
479 | private System.IAsyncResult OnBeginGetStatusInfos(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
480 | return this.BeginGetStatusInfos(callback, asyncState);
|
---|
481 | }
|
---|
482 |
|
---|
483 | private object[] OnEndGetStatusInfos(System.IAsyncResult result) {
|
---|
484 | HeuristicLab.Hive.Client.Console.ClientService.StatusCommons retVal = this.EndGetStatusInfos(result);
|
---|
485 | return new object[] {
|
---|
486 | retVal};
|
---|
487 | }
|
---|
488 |
|
---|
489 | private void OnGetStatusInfosCompleted(object state) {
|
---|
490 | if ((this.GetStatusInfosCompleted != null)) {
|
---|
491 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
492 | this.GetStatusInfosCompleted(this, new GetStatusInfosCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
493 | }
|
---|
494 | }
|
---|
495 |
|
---|
496 | public void GetStatusInfosAsync() {
|
---|
497 | this.GetStatusInfosAsync(null);
|
---|
498 | }
|
---|
499 |
|
---|
500 | public void GetStatusInfosAsync(object userState) {
|
---|
501 | if ((this.onBeginGetStatusInfosDelegate == null)) {
|
---|
502 | this.onBeginGetStatusInfosDelegate = new BeginOperationDelegate(this.OnBeginGetStatusInfos);
|
---|
503 | }
|
---|
504 | if ((this.onEndGetStatusInfosDelegate == null)) {
|
---|
505 | this.onEndGetStatusInfosDelegate = new EndOperationDelegate(this.OnEndGetStatusInfos);
|
---|
506 | }
|
---|
507 | if ((this.onGetStatusInfosCompletedDelegate == null)) {
|
---|
508 | this.onGetStatusInfosCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusInfosCompleted);
|
---|
509 | }
|
---|
510 | base.InvokeAsync(this.onBeginGetStatusInfosDelegate, null, this.onEndGetStatusInfosDelegate, this.onGetStatusInfosCompletedDelegate, userState);
|
---|
511 | }
|
---|
512 |
|
---|
513 | public void SetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container) {
|
---|
514 | base.Channel.SetConnection(container);
|
---|
515 | }
|
---|
516 |
|
---|
517 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
518 | public System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container, System.AsyncCallback callback, object asyncState) {
|
---|
519 | return base.Channel.BeginSetConnection(container, callback, asyncState);
|
---|
520 | }
|
---|
521 |
|
---|
522 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
523 | public void EndSetConnection(System.IAsyncResult result) {
|
---|
524 | base.Channel.EndSetConnection(result);
|
---|
525 | }
|
---|
526 |
|
---|
527 | private System.IAsyncResult OnBeginSetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
528 | HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container = ((HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer)(inValues[0]));
|
---|
529 | return this.BeginSetConnection(container, callback, asyncState);
|
---|
530 | }
|
---|
531 |
|
---|
532 | private object[] OnEndSetConnection(System.IAsyncResult result) {
|
---|
533 | this.EndSetConnection(result);
|
---|
534 | return null;
|
---|
535 | }
|
---|
536 |
|
---|
537 | private void OnSetConnectionCompleted(object state) {
|
---|
538 | if ((this.SetConnectionCompleted != null)) {
|
---|
539 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
540 | this.SetConnectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
---|
541 | }
|
---|
542 | }
|
---|
543 |
|
---|
544 | public void SetConnectionAsync(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container) {
|
---|
545 | this.SetConnectionAsync(container, null);
|
---|
546 | }
|
---|
547 |
|
---|
548 | public void SetConnectionAsync(HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer container, object userState) {
|
---|
549 | if ((this.onBeginSetConnectionDelegate == null)) {
|
---|
550 | this.onBeginSetConnectionDelegate = new BeginOperationDelegate(this.OnBeginSetConnection);
|
---|
551 | }
|
---|
552 | if ((this.onEndSetConnectionDelegate == null)) {
|
---|
553 | this.onEndSetConnectionDelegate = new EndOperationDelegate(this.OnEndSetConnection);
|
---|
554 | }
|
---|
555 | if ((this.onSetConnectionCompletedDelegate == null)) {
|
---|
556 | this.onSetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetConnectionCompleted);
|
---|
557 | }
|
---|
558 | base.InvokeAsync(this.onBeginSetConnectionDelegate, new object[] {
|
---|
559 | container}, this.onEndSetConnectionDelegate, this.onSetConnectionCompletedDelegate, userState);
|
---|
560 | }
|
---|
561 |
|
---|
562 | public void Disconnect() {
|
---|
563 | base.Channel.Disconnect();
|
---|
564 | }
|
---|
565 |
|
---|
566 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
567 | public System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState) {
|
---|
568 | return base.Channel.BeginDisconnect(callback, asyncState);
|
---|
569 | }
|
---|
570 |
|
---|
571 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
572 | public void EndDisconnect(System.IAsyncResult result) {
|
---|
573 | base.Channel.EndDisconnect(result);
|
---|
574 | }
|
---|
575 |
|
---|
576 | private System.IAsyncResult OnBeginDisconnect(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
577 | return this.BeginDisconnect(callback, asyncState);
|
---|
578 | }
|
---|
579 |
|
---|
580 | private object[] OnEndDisconnect(System.IAsyncResult result) {
|
---|
581 | this.EndDisconnect(result);
|
---|
582 | return null;
|
---|
583 | }
|
---|
584 |
|
---|
585 | private void OnDisconnectCompleted(object state) {
|
---|
586 | if ((this.DisconnectCompleted != null)) {
|
---|
587 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
588 | this.DisconnectCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
---|
589 | }
|
---|
590 | }
|
---|
591 |
|
---|
592 | public void DisconnectAsync() {
|
---|
593 | this.DisconnectAsync(null);
|
---|
594 | }
|
---|
595 |
|
---|
596 | public void DisconnectAsync(object userState) {
|
---|
597 | if ((this.onBeginDisconnectDelegate == null)) {
|
---|
598 | this.onBeginDisconnectDelegate = new BeginOperationDelegate(this.OnBeginDisconnect);
|
---|
599 | }
|
---|
600 | if ((this.onEndDisconnectDelegate == null)) {
|
---|
601 | this.onEndDisconnectDelegate = new EndOperationDelegate(this.OnEndDisconnect);
|
---|
602 | }
|
---|
603 | if ((this.onDisconnectCompletedDelegate == null)) {
|
---|
604 | this.onDisconnectCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDisconnectCompleted);
|
---|
605 | }
|
---|
606 | base.InvokeAsync(this.onBeginDisconnectDelegate, null, this.onEndDisconnectDelegate, this.onDisconnectCompletedDelegate, userState);
|
---|
607 | }
|
---|
608 |
|
---|
609 | public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer GetCurrentConnection() {
|
---|
610 | return base.Channel.GetCurrentConnection();
|
---|
611 | }
|
---|
612 |
|
---|
613 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
614 | public System.IAsyncResult BeginGetCurrentConnection(System.AsyncCallback callback, object asyncState) {
|
---|
615 | return base.Channel.BeginGetCurrentConnection(callback, asyncState);
|
---|
616 | }
|
---|
617 |
|
---|
618 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
619 | public HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result) {
|
---|
620 | return base.Channel.EndGetCurrentConnection(result);
|
---|
621 | }
|
---|
622 |
|
---|
623 | private System.IAsyncResult OnBeginGetCurrentConnection(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
624 | return this.BeginGetCurrentConnection(callback, asyncState);
|
---|
625 | }
|
---|
626 |
|
---|
627 | private object[] OnEndGetCurrentConnection(System.IAsyncResult result) {
|
---|
628 | HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer retVal = this.EndGetCurrentConnection(result);
|
---|
629 | return new object[] {
|
---|
630 | retVal};
|
---|
631 | }
|
---|
632 |
|
---|
633 | private void OnGetCurrentConnectionCompleted(object state) {
|
---|
634 | if ((this.GetCurrentConnectionCompleted != null)) {
|
---|
635 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
636 | this.GetCurrentConnectionCompleted(this, new GetCurrentConnectionCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
637 | }
|
---|
638 | }
|
---|
639 |
|
---|
640 | public void GetCurrentConnectionAsync() {
|
---|
641 | this.GetCurrentConnectionAsync(null);
|
---|
642 | }
|
---|
643 |
|
---|
644 | public void GetCurrentConnectionAsync(object userState) {
|
---|
645 | if ((this.onBeginGetCurrentConnectionDelegate == null)) {
|
---|
646 | this.onBeginGetCurrentConnectionDelegate = new BeginOperationDelegate(this.OnBeginGetCurrentConnection);
|
---|
647 | }
|
---|
648 | if ((this.onEndGetCurrentConnectionDelegate == null)) {
|
---|
649 | this.onEndGetCurrentConnectionDelegate = new EndOperationDelegate(this.OnEndGetCurrentConnection);
|
---|
650 | }
|
---|
651 | if ((this.onGetCurrentConnectionCompletedDelegate == null)) {
|
---|
652 | this.onGetCurrentConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetCurrentConnectionCompleted);
|
---|
653 | }
|
---|
654 | base.InvokeAsync(this.onBeginGetCurrentConnectionDelegate, null, this.onEndGetCurrentConnectionDelegate, this.onGetCurrentConnectionCompletedDelegate, userState);
|
---|
655 | }
|
---|
656 |
|
---|
657 | public void ShutdownClient() {
|
---|
658 | base.Channel.ShutdownClient();
|
---|
659 | }
|
---|
660 |
|
---|
661 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
662 | public System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState) {
|
---|
663 | return base.Channel.BeginShutdownClient(callback, asyncState);
|
---|
664 | }
|
---|
665 |
|
---|
666 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
667 | public void EndShutdownClient(System.IAsyncResult result) {
|
---|
668 | base.Channel.EndShutdownClient(result);
|
---|
669 | }
|
---|
670 |
|
---|
671 | private System.IAsyncResult OnBeginShutdownClient(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
672 | return this.BeginShutdownClient(callback, asyncState);
|
---|
673 | }
|
---|
674 |
|
---|
675 | private object[] OnEndShutdownClient(System.IAsyncResult result) {
|
---|
676 | this.EndShutdownClient(result);
|
---|
677 | return null;
|
---|
678 | }
|
---|
679 |
|
---|
680 | private void OnShutdownClientCompleted(object state) {
|
---|
681 | if ((this.ShutdownClientCompleted != null)) {
|
---|
682 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
683 | this.ShutdownClientCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
---|
684 | }
|
---|
685 | }
|
---|
686 |
|
---|
687 | public void ShutdownClientAsync() {
|
---|
688 | this.ShutdownClientAsync(null);
|
---|
689 | }
|
---|
690 |
|
---|
691 | public void ShutdownClientAsync(object userState) {
|
---|
692 | if ((this.onBeginShutdownClientDelegate == null)) {
|
---|
693 | this.onBeginShutdownClientDelegate = new BeginOperationDelegate(this.OnBeginShutdownClient);
|
---|
694 | }
|
---|
695 | if ((this.onEndShutdownClientDelegate == null)) {
|
---|
696 | this.onEndShutdownClientDelegate = new EndOperationDelegate(this.OnEndShutdownClient);
|
---|
697 | }
|
---|
698 | if ((this.onShutdownClientCompletedDelegate == null)) {
|
---|
699 | this.onShutdownClientCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnShutdownClientCompleted);
|
---|
700 | }
|
---|
701 | base.InvokeAsync(this.onBeginShutdownClientDelegate, null, this.onEndShutdownClientDelegate, this.onShutdownClientCompletedDelegate, userState);
|
---|
702 | }
|
---|
703 | }
|
---|
704 | }
|
---|