source: trunk/sources/HeuristicLab.Hive.Client.Communication/Service References/ServerService/Reference.cs @ 1449

Last change on this file since 1449 was 1449, checked in by svonolfe, 12 years ago

Refactored DAL (now using GUIDs as IDs instead of longs) (#527)

File size: 42.6 KB
Line 
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
11namespace HeuristicLab.Hive.Client.Communication.ServerService {
12   
13   
14    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
15    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServerService.IClientCommunicator")]
16    public interface IClientCommunicator {
17       
18        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]
19        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
20        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
21        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
22        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
23        HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo);
24       
25        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]
26        System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState);
27       
28        HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result);
29       
30        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
31        HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData);
32       
33        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
34        System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState);
35       
36        HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result);
37       
38        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
39        HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId);
40       
41        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
42        System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState);
43       
44        HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result);
45       
46        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]
47        HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception);
48       
49        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]
50        System.IAsyncResult BeginStoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState);
51       
52        HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResult(System.IAsyncResult result);
53       
54        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]
55        HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception);
56       
57        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]
58        System.IAsyncResult BeginProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState);
59       
60        HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessSnapshot(System.IAsyncResult result);
61       
62        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
63        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
64        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
65        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
66        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
67        HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId);
68       
69        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
70        System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState);
71       
72        HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result);
73       
74        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]
75        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
76        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
77        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
78        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
79        HeuristicLab.Hive.Contracts.Response IsJobStillNeeded(System.Guid jobId);
80       
81        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]
82        System.IAsyncResult BeginIsJobStillNeeded(System.Guid jobId, System.AsyncCallback callback, object asyncState);
83       
84        HeuristicLab.Hive.Contracts.Response EndIsJobStillNeeded(System.IAsyncResult result);
85       
86        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]
87        HeuristicLab.Hive.Contracts.ResponsePlugin SendPlugins(string[] pluginList);
88       
89        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]
90        System.IAsyncResult BeginSendPlugins(string[] pluginList, System.AsyncCallback callback, object asyncState);
91       
92        HeuristicLab.Hive.Contracts.ResponsePlugin EndSendPlugins(System.IAsyncResult result);
93    }
94   
95    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
96    public interface IClientCommunicatorChannel : HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator, System.ServiceModel.IClientChannel {
97    }
98   
99    [System.Diagnostics.DebuggerStepThroughAttribute()]
100    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
101    public partial class LoginCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
102       
103        private object[] results;
104       
105        public LoginCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
106                base(exception, cancelled, userState) {
107            this.results = results;
108        }
109       
110        public HeuristicLab.Hive.Contracts.Response Result {
111            get {
112                base.RaiseExceptionIfNecessary();
113                return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
114            }
115        }
116    }
117   
118    [System.Diagnostics.DebuggerStepThroughAttribute()]
119    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
120    public partial class ProcessHeartBeatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
121       
122        private object[] results;
123       
124        public ProcessHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
125                base(exception, cancelled, userState) {
126            this.results = results;
127        }
128       
129        public HeuristicLab.Hive.Contracts.ResponseHB Result {
130            get {
131                base.RaiseExceptionIfNecessary();
132                return ((HeuristicLab.Hive.Contracts.ResponseHB)(this.results[0]));
133            }
134        }
135    }
136   
137    [System.Diagnostics.DebuggerStepThroughAttribute()]
138    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
139    public partial class SendJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
140       
141        private object[] results;
142       
143        public SendJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
144                base(exception, cancelled, userState) {
145            this.results = results;
146        }
147       
148        public HeuristicLab.Hive.Contracts.ResponseJob Result {
149            get {
150                base.RaiseExceptionIfNecessary();
151                return ((HeuristicLab.Hive.Contracts.ResponseJob)(this.results[0]));
152            }
153        }
154    }
155   
156    [System.Diagnostics.DebuggerStepThroughAttribute()]
157    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
158    public partial class StoreFinishedJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
159       
160        private object[] results;
161       
162        public StoreFinishedJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
163                base(exception, cancelled, userState) {
164            this.results = results;
165        }
166       
167        public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
168            get {
169                base.RaiseExceptionIfNecessary();
170                return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
171            }
172        }
173    }
174   
175    [System.Diagnostics.DebuggerStepThroughAttribute()]
176    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
177    public partial class ProcessSnapshotCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
178       
179        private object[] results;
180       
181        public ProcessSnapshotCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
182                base(exception, cancelled, userState) {
183            this.results = results;
184        }
185       
186        public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
187            get {
188                base.RaiseExceptionIfNecessary();
189                return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
190            }
191        }
192    }
193   
194    [System.Diagnostics.DebuggerStepThroughAttribute()]
195    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
196    public partial class LogoutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
197       
198        private object[] results;
199       
200        public LogoutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
201                base(exception, cancelled, userState) {
202            this.results = results;
203        }
204       
205        public HeuristicLab.Hive.Contracts.Response Result {
206            get {
207                base.RaiseExceptionIfNecessary();
208                return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
209            }
210        }
211    }
212   
213    [System.Diagnostics.DebuggerStepThroughAttribute()]
214    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
215    public partial class IsJobStillNeededCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
216       
217        private object[] results;
218       
219        public IsJobStillNeededCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
220                base(exception, cancelled, userState) {
221            this.results = results;
222        }
223       
224        public HeuristicLab.Hive.Contracts.Response Result {
225            get {
226                base.RaiseExceptionIfNecessary();
227                return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
228            }
229        }
230    }
231   
232    [System.Diagnostics.DebuggerStepThroughAttribute()]
233    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
234    public partial class SendPluginsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
235       
236        private object[] results;
237       
238        public SendPluginsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
239                base(exception, cancelled, userState) {
240            this.results = results;
241        }
242       
243        public HeuristicLab.Hive.Contracts.ResponsePlugin Result {
244            get {
245                base.RaiseExceptionIfNecessary();
246                return ((HeuristicLab.Hive.Contracts.ResponsePlugin)(this.results[0]));
247            }
248        }
249    }
250   
251    [System.Diagnostics.DebuggerStepThroughAttribute()]
252    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
253    public partial class ClientCommunicatorClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator>, HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator {
254       
255        private BeginOperationDelegate onBeginLoginDelegate;
256       
257        private EndOperationDelegate onEndLoginDelegate;
258       
259        private System.Threading.SendOrPostCallback onLoginCompletedDelegate;
260       
261        private BeginOperationDelegate onBeginProcessHeartBeatDelegate;
262       
263        private EndOperationDelegate onEndProcessHeartBeatDelegate;
264       
265        private System.Threading.SendOrPostCallback onProcessHeartBeatCompletedDelegate;
266       
267        private BeginOperationDelegate onBeginSendJobDelegate;
268       
269        private EndOperationDelegate onEndSendJobDelegate;
270       
271        private System.Threading.SendOrPostCallback onSendJobCompletedDelegate;
272       
273        private BeginOperationDelegate onBeginStoreFinishedJobResultDelegate;
274       
275        private EndOperationDelegate onEndStoreFinishedJobResultDelegate;
276       
277        private System.Threading.SendOrPostCallback onStoreFinishedJobResultCompletedDelegate;
278       
279        private BeginOperationDelegate onBeginProcessSnapshotDelegate;
280       
281        private EndOperationDelegate onEndProcessSnapshotDelegate;
282       
283        private System.Threading.SendOrPostCallback onProcessSnapshotCompletedDelegate;
284       
285        private BeginOperationDelegate onBeginLogoutDelegate;
286       
287        private EndOperationDelegate onEndLogoutDelegate;
288       
289        private System.Threading.SendOrPostCallback onLogoutCompletedDelegate;
290       
291        private BeginOperationDelegate onBeginIsJobStillNeededDelegate;
292       
293        private EndOperationDelegate onEndIsJobStillNeededDelegate;
294       
295        private System.Threading.SendOrPostCallback onIsJobStillNeededCompletedDelegate;
296       
297        private BeginOperationDelegate onBeginSendPluginsDelegate;
298       
299        private EndOperationDelegate onEndSendPluginsDelegate;
300       
301        private System.Threading.SendOrPostCallback onSendPluginsCompletedDelegate;
302       
303        public ClientCommunicatorClient() {
304        }
305       
306        public ClientCommunicatorClient(string endpointConfigurationName) :
307                base(endpointConfigurationName) {
308        }
309       
310        public ClientCommunicatorClient(string endpointConfigurationName, string remoteAddress) :
311                base(endpointConfigurationName, remoteAddress) {
312        }
313       
314        public ClientCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
315                base(endpointConfigurationName, remoteAddress) {
316        }
317       
318        public ClientCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
319                base(binding, remoteAddress) {
320        }
321       
322        public event System.EventHandler<LoginCompletedEventArgs> LoginCompleted;
323       
324        public event System.EventHandler<ProcessHeartBeatCompletedEventArgs> ProcessHeartBeatCompleted;
325       
326        public event System.EventHandler<SendJobCompletedEventArgs> SendJobCompleted;
327       
328        public event System.EventHandler<StoreFinishedJobResultCompletedEventArgs> StoreFinishedJobResultCompleted;
329       
330        public event System.EventHandler<ProcessSnapshotCompletedEventArgs> ProcessSnapshotCompleted;
331       
332        public event System.EventHandler<LogoutCompletedEventArgs> LogoutCompleted;
333       
334        public event System.EventHandler<IsJobStillNeededCompletedEventArgs> IsJobStillNeededCompleted;
335       
336        public event System.EventHandler<SendPluginsCompletedEventArgs> SendPluginsCompleted;
337       
338        public HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
339            return base.Channel.Login(clientInfo);
340        }
341       
342        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
343        public System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState) {
344            return base.Channel.BeginLogin(clientInfo, callback, asyncState);
345        }
346       
347        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
348        public HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result) {
349            return base.Channel.EndLogin(result);
350        }
351       
352        private System.IAsyncResult OnBeginLogin(object[] inValues, System.AsyncCallback callback, object asyncState) {
353            HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo = ((HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo)(inValues[0]));
354            return this.BeginLogin(clientInfo, callback, asyncState);
355        }
356       
357        private object[] OnEndLogin(System.IAsyncResult result) {
358            HeuristicLab.Hive.Contracts.Response retVal = this.EndLogin(result);
359            return new object[] {
360                    retVal};
361        }
362       
363        private void OnLoginCompleted(object state) {
364            if ((this.LoginCompleted != null)) {
365                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
366                this.LoginCompleted(this, new LoginCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
367            }
368        }
369       
370        public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
371            this.LoginAsync(clientInfo, null);
372        }
373       
374        public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, object userState) {
375            if ((this.onBeginLoginDelegate == null)) {
376                this.onBeginLoginDelegate = new BeginOperationDelegate(this.OnBeginLogin);
377            }
378            if ((this.onEndLoginDelegate == null)) {
379                this.onEndLoginDelegate = new EndOperationDelegate(this.OnEndLogin);
380            }
381            if ((this.onLoginCompletedDelegate == null)) {
382                this.onLoginCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLoginCompleted);
383            }
384            base.InvokeAsync(this.onBeginLoginDelegate, new object[] {
385                        clientInfo}, this.onEndLoginDelegate, this.onLoginCompletedDelegate, userState);
386        }
387       
388        public HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
389            return base.Channel.ProcessHeartBeat(hbData);
390        }
391       
392        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
393        public System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState) {
394            return base.Channel.BeginProcessHeartBeat(hbData, callback, asyncState);
395        }
396       
397        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
398        public HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result) {
399            return base.Channel.EndProcessHeartBeat(result);
400        }
401       
402        private System.IAsyncResult OnBeginProcessHeartBeat(object[] inValues, System.AsyncCallback callback, object asyncState) {
403            HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData = ((HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData)(inValues[0]));
404            return this.BeginProcessHeartBeat(hbData, callback, asyncState);
405        }
406       
407        private object[] OnEndProcessHeartBeat(System.IAsyncResult result) {
408            HeuristicLab.Hive.Contracts.ResponseHB retVal = this.EndProcessHeartBeat(result);
409            return new object[] {
410                    retVal};
411        }
412       
413        private void OnProcessHeartBeatCompleted(object state) {
414            if ((this.ProcessHeartBeatCompleted != null)) {
415                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
416                this.ProcessHeartBeatCompleted(this, new ProcessHeartBeatCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
417            }
418        }
419       
420        public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
421            this.ProcessHeartBeatAsync(hbData, null);
422        }
423       
424        public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, object userState) {
425            if ((this.onBeginProcessHeartBeatDelegate == null)) {
426                this.onBeginProcessHeartBeatDelegate = new BeginOperationDelegate(this.OnBeginProcessHeartBeat);
427            }
428            if ((this.onEndProcessHeartBeatDelegate == null)) {
429                this.onEndProcessHeartBeatDelegate = new EndOperationDelegate(this.OnEndProcessHeartBeat);
430            }
431            if ((this.onProcessHeartBeatCompletedDelegate == null)) {
432                this.onProcessHeartBeatCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessHeartBeatCompleted);
433            }
434            base.InvokeAsync(this.onBeginProcessHeartBeatDelegate, new object[] {
435                        hbData}, this.onEndProcessHeartBeatDelegate, this.onProcessHeartBeatCompletedDelegate, userState);
436        }
437       
438        public HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId) {
439            return base.Channel.SendJob(clientId);
440        }
441       
442        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
443        public System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
444            return base.Channel.BeginSendJob(clientId, callback, asyncState);
445        }
446       
447        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
448        public HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result) {
449            return base.Channel.EndSendJob(result);
450        }
451       
452        private System.IAsyncResult OnBeginSendJob(object[] inValues, System.AsyncCallback callback, object asyncState) {
453            System.Guid clientId = ((System.Guid)(inValues[0]));
454            return this.BeginSendJob(clientId, callback, asyncState);
455        }
456       
457        private object[] OnEndSendJob(System.IAsyncResult result) {
458            HeuristicLab.Hive.Contracts.ResponseJob retVal = this.EndSendJob(result);
459            return new object[] {
460                    retVal};
461        }
462       
463        private void OnSendJobCompleted(object state) {
464            if ((this.SendJobCompleted != null)) {
465                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
466                this.SendJobCompleted(this, new SendJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
467            }
468        }
469       
470        public void SendJobAsync(System.Guid clientId) {
471            this.SendJobAsync(clientId, null);
472        }
473       
474        public void SendJobAsync(System.Guid clientId, object userState) {
475            if ((this.onBeginSendJobDelegate == null)) {
476                this.onBeginSendJobDelegate = new BeginOperationDelegate(this.OnBeginSendJob);
477            }
478            if ((this.onEndSendJobDelegate == null)) {
479                this.onEndSendJobDelegate = new EndOperationDelegate(this.OnEndSendJob);
480            }
481            if ((this.onSendJobCompletedDelegate == null)) {
482                this.onSendJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobCompleted);
483            }
484            base.InvokeAsync(this.onBeginSendJobDelegate, new object[] {
485                        clientId}, this.onEndSendJobDelegate, this.onSendJobCompletedDelegate, userState);
486        }
487       
488        public HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
489            return base.Channel.StoreFinishedJobResult(clientId, jobId, result, percentage, exception);
490        }
491       
492        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
493        public System.IAsyncResult BeginStoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState) {
494            return base.Channel.BeginStoreFinishedJobResult(clientId, jobId, result, percentage, exception, callback, asyncState);
495        }
496       
497        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
498        public HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResult(System.IAsyncResult result) {
499            return base.Channel.EndStoreFinishedJobResult(result);
500        }
501       
502        private System.IAsyncResult OnBeginStoreFinishedJobResult(object[] inValues, System.AsyncCallback callback, object asyncState) {
503            System.Guid clientId = ((System.Guid)(inValues[0]));
504            System.Guid jobId = ((System.Guid)(inValues[1]));
505            byte[] result = ((byte[])(inValues[2]));
506            double percentage = ((double)(inValues[3]));
507            System.Exception exception = ((System.Exception)(inValues[4]));
508            return this.BeginStoreFinishedJobResult(clientId, jobId, result, percentage, exception, callback, asyncState);
509        }
510       
511        private object[] OnEndStoreFinishedJobResult(System.IAsyncResult result) {
512            HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndStoreFinishedJobResult(result);
513            return new object[] {
514                    retVal};
515        }
516       
517        private void OnStoreFinishedJobResultCompleted(object state) {
518            if ((this.StoreFinishedJobResultCompleted != null)) {
519                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
520                this.StoreFinishedJobResultCompleted(this, new StoreFinishedJobResultCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
521            }
522        }
523       
524        public void StoreFinishedJobResultAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
525            this.StoreFinishedJobResultAsync(clientId, jobId, result, percentage, exception, null);
526        }
527       
528        public void StoreFinishedJobResultAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, object userState) {
529            if ((this.onBeginStoreFinishedJobResultDelegate == null)) {
530                this.onBeginStoreFinishedJobResultDelegate = new BeginOperationDelegate(this.OnBeginStoreFinishedJobResult);
531            }
532            if ((this.onEndStoreFinishedJobResultDelegate == null)) {
533                this.onEndStoreFinishedJobResultDelegate = new EndOperationDelegate(this.OnEndStoreFinishedJobResult);
534            }
535            if ((this.onStoreFinishedJobResultCompletedDelegate == null)) {
536                this.onStoreFinishedJobResultCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnStoreFinishedJobResultCompleted);
537            }
538            base.InvokeAsync(this.onBeginStoreFinishedJobResultDelegate, new object[] {
539                        clientId,
540                        jobId,
541                        result,
542                        percentage,
543                        exception}, this.onEndStoreFinishedJobResultDelegate, this.onStoreFinishedJobResultCompletedDelegate, userState);
544        }
545       
546        public HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
547            return base.Channel.ProcessSnapshot(clientId, jobId, result, percentage, exception);
548        }
549       
550        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
551        public System.IAsyncResult BeginProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState) {
552            return base.Channel.BeginProcessSnapshot(clientId, jobId, result, percentage, exception, callback, asyncState);
553        }
554       
555        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
556        public HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessSnapshot(System.IAsyncResult result) {
557            return base.Channel.EndProcessSnapshot(result);
558        }
559       
560        private System.IAsyncResult OnBeginProcessSnapshot(object[] inValues, System.AsyncCallback callback, object asyncState) {
561            System.Guid clientId = ((System.Guid)(inValues[0]));
562            System.Guid jobId = ((System.Guid)(inValues[1]));
563            byte[] result = ((byte[])(inValues[2]));
564            double percentage = ((double)(inValues[3]));
565            System.Exception exception = ((System.Exception)(inValues[4]));
566            return this.BeginProcessSnapshot(clientId, jobId, result, percentage, exception, callback, asyncState);
567        }
568       
569        private object[] OnEndProcessSnapshot(System.IAsyncResult result) {
570            HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndProcessSnapshot(result);
571            return new object[] {
572                    retVal};
573        }
574       
575        private void OnProcessSnapshotCompleted(object state) {
576            if ((this.ProcessSnapshotCompleted != null)) {
577                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
578                this.ProcessSnapshotCompleted(this, new ProcessSnapshotCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
579            }
580        }
581       
582        public void ProcessSnapshotAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
583            this.ProcessSnapshotAsync(clientId, jobId, result, percentage, exception, null);
584        }
585       
586        public void ProcessSnapshotAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, object userState) {
587            if ((this.onBeginProcessSnapshotDelegate == null)) {
588                this.onBeginProcessSnapshotDelegate = new BeginOperationDelegate(this.OnBeginProcessSnapshot);
589            }
590            if ((this.onEndProcessSnapshotDelegate == null)) {
591                this.onEndProcessSnapshotDelegate = new EndOperationDelegate(this.OnEndProcessSnapshot);
592            }
593            if ((this.onProcessSnapshotCompletedDelegate == null)) {
594                this.onProcessSnapshotCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessSnapshotCompleted);
595            }
596            base.InvokeAsync(this.onBeginProcessSnapshotDelegate, new object[] {
597                        clientId,
598                        jobId,
599                        result,
600                        percentage,
601                        exception}, this.onEndProcessSnapshotDelegate, this.onProcessSnapshotCompletedDelegate, userState);
602        }
603       
604        public HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId) {
605            return base.Channel.Logout(clientId);
606        }
607       
608        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
609        public System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
610            return base.Channel.BeginLogout(clientId, callback, asyncState);
611        }
612       
613        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
614        public HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result) {
615            return base.Channel.EndLogout(result);
616        }
617       
618        private System.IAsyncResult OnBeginLogout(object[] inValues, System.AsyncCallback callback, object asyncState) {
619            System.Guid clientId = ((System.Guid)(inValues[0]));
620            return this.BeginLogout(clientId, callback, asyncState);
621        }
622       
623        private object[] OnEndLogout(System.IAsyncResult result) {
624            HeuristicLab.Hive.Contracts.Response retVal = this.EndLogout(result);
625            return new object[] {
626                    retVal};
627        }
628       
629        private void OnLogoutCompleted(object state) {
630            if ((this.LogoutCompleted != null)) {
631                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
632                this.LogoutCompleted(this, new LogoutCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
633            }
634        }
635       
636        public void LogoutAsync(System.Guid clientId) {
637            this.LogoutAsync(clientId, null);
638        }
639       
640        public void LogoutAsync(System.Guid clientId, object userState) {
641            if ((this.onBeginLogoutDelegate == null)) {
642                this.onBeginLogoutDelegate = new BeginOperationDelegate(this.OnBeginLogout);
643            }
644            if ((this.onEndLogoutDelegate == null)) {
645                this.onEndLogoutDelegate = new EndOperationDelegate(this.OnEndLogout);
646            }
647            if ((this.onLogoutCompletedDelegate == null)) {
648                this.onLogoutCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLogoutCompleted);
649            }
650            base.InvokeAsync(this.onBeginLogoutDelegate, new object[] {
651                        clientId}, this.onEndLogoutDelegate, this.onLogoutCompletedDelegate, userState);
652        }
653       
654        public HeuristicLab.Hive.Contracts.Response IsJobStillNeeded(System.Guid jobId) {
655            return base.Channel.IsJobStillNeeded(jobId);
656        }
657       
658        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
659        public System.IAsyncResult BeginIsJobStillNeeded(System.Guid jobId, System.AsyncCallback callback, object asyncState) {
660            return base.Channel.BeginIsJobStillNeeded(jobId, callback, asyncState);
661        }
662       
663        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
664        public HeuristicLab.Hive.Contracts.Response EndIsJobStillNeeded(System.IAsyncResult result) {
665            return base.Channel.EndIsJobStillNeeded(result);
666        }
667       
668        private System.IAsyncResult OnBeginIsJobStillNeeded(object[] inValues, System.AsyncCallback callback, object asyncState) {
669            System.Guid jobId = ((System.Guid)(inValues[0]));
670            return this.BeginIsJobStillNeeded(jobId, callback, asyncState);
671        }
672       
673        private object[] OnEndIsJobStillNeeded(System.IAsyncResult result) {
674            HeuristicLab.Hive.Contracts.Response retVal = this.EndIsJobStillNeeded(result);
675            return new object[] {
676                    retVal};
677        }
678       
679        private void OnIsJobStillNeededCompleted(object state) {
680            if ((this.IsJobStillNeededCompleted != null)) {
681                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
682                this.IsJobStillNeededCompleted(this, new IsJobStillNeededCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
683            }
684        }
685       
686        public void IsJobStillNeededAsync(System.Guid jobId) {
687            this.IsJobStillNeededAsync(jobId, null);
688        }
689       
690        public void IsJobStillNeededAsync(System.Guid jobId, object userState) {
691            if ((this.onBeginIsJobStillNeededDelegate == null)) {
692                this.onBeginIsJobStillNeededDelegate = new BeginOperationDelegate(this.OnBeginIsJobStillNeeded);
693            }
694            if ((this.onEndIsJobStillNeededDelegate == null)) {
695                this.onEndIsJobStillNeededDelegate = new EndOperationDelegate(this.OnEndIsJobStillNeeded);
696            }
697            if ((this.onIsJobStillNeededCompletedDelegate == null)) {
698                this.onIsJobStillNeededCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnIsJobStillNeededCompleted);
699            }
700            base.InvokeAsync(this.onBeginIsJobStillNeededDelegate, new object[] {
701                        jobId}, this.onEndIsJobStillNeededDelegate, this.onIsJobStillNeededCompletedDelegate, userState);
702        }
703       
704        public HeuristicLab.Hive.Contracts.ResponsePlugin SendPlugins(string[] pluginList) {
705            return base.Channel.SendPlugins(pluginList);
706        }
707       
708        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
709        public System.IAsyncResult BeginSendPlugins(string[] pluginList, System.AsyncCallback callback, object asyncState) {
710            return base.Channel.BeginSendPlugins(pluginList, callback, asyncState);
711        }
712       
713        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
714        public HeuristicLab.Hive.Contracts.ResponsePlugin EndSendPlugins(System.IAsyncResult result) {
715            return base.Channel.EndSendPlugins(result);
716        }
717       
718        private System.IAsyncResult OnBeginSendPlugins(object[] inValues, System.AsyncCallback callback, object asyncState) {
719            string[] pluginList = ((string[])(inValues[0]));
720            return this.BeginSendPlugins(pluginList, callback, asyncState);
721        }
722       
723        private object[] OnEndSendPlugins(System.IAsyncResult result) {
724            HeuristicLab.Hive.Contracts.ResponsePlugin retVal = this.EndSendPlugins(result);
725            return new object[] {
726                    retVal};
727        }
728       
729        private void OnSendPluginsCompleted(object state) {
730            if ((this.SendPluginsCompleted != null)) {
731                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
732                this.SendPluginsCompleted(this, new SendPluginsCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
733            }
734        }
735       
736        public void SendPluginsAsync(string[] pluginList) {
737            this.SendPluginsAsync(pluginList, null);
738        }
739       
740        public void SendPluginsAsync(string[] pluginList, object userState) {
741            if ((this.onBeginSendPluginsDelegate == null)) {
742                this.onBeginSendPluginsDelegate = new BeginOperationDelegate(this.OnBeginSendPlugins);
743            }
744            if ((this.onEndSendPluginsDelegate == null)) {
745                this.onEndSendPluginsDelegate = new EndOperationDelegate(this.OnEndSendPlugins);
746            }
747            if ((this.onSendPluginsCompletedDelegate == null)) {
748                this.onSendPluginsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendPluginsCompleted);
749            }
750            base.InvokeAsync(this.onBeginSendPluginsDelegate, new object[] {
751                        pluginList}, this.onEndSendPluginsDelegate, this.onSendPluginsCompletedDelegate, userState);
752        }
753    }
754}
Note: See TracBrowser for help on using the repository browser.