Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 1366 was 1366, checked in by kgrading, 16 years ago

bugfixes and updated webservice (#529)

File size: 26.9 KB
Line 
1//------------------------------------------------------------------------------
2// <auto-generated>
3//     This code was generated by a tool.
4//     Runtime Version:2.0.50727.3053
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        HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo);
23       
24        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]
25        System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState);
26       
27        HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result);
28       
29        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
30        HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData);
31       
32        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
33        System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState);
34       
35        HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result);
36       
37        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
38        HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId);
39       
40        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
41        System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState);
42       
43        HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result);
44       
45        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessJobResultResponse")]
46        HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessJobResult(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished);
47       
48        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessJobResultResponse")]
49        System.IAsyncResult BeginProcessJobResult(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished, System.AsyncCallback callback, object asyncState);
50       
51        HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessJobResult(System.IAsyncResult result);
52       
53        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
54        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
55        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
56        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
57        HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId);
58       
59        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
60        System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState);
61       
62        HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result);
63    }
64   
65    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
66    public interface IClientCommunicatorChannel : HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator, System.ServiceModel.IClientChannel {
67    }
68   
69    [System.Diagnostics.DebuggerStepThroughAttribute()]
70    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
71    public partial class LoginCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
72       
73        private object[] results;
74       
75        public LoginCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
76                base(exception, cancelled, userState) {
77            this.results = results;
78        }
79       
80        public HeuristicLab.Hive.Contracts.Response Result {
81            get {
82                base.RaiseExceptionIfNecessary();
83                return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
84            }
85        }
86    }
87   
88    [System.Diagnostics.DebuggerStepThroughAttribute()]
89    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
90    public partial class ProcessHeartBeatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
91       
92        private object[] results;
93       
94        public ProcessHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
95                base(exception, cancelled, userState) {
96            this.results = results;
97        }
98       
99        public HeuristicLab.Hive.Contracts.ResponseHB Result {
100            get {
101                base.RaiseExceptionIfNecessary();
102                return ((HeuristicLab.Hive.Contracts.ResponseHB)(this.results[0]));
103            }
104        }
105    }
106   
107    [System.Diagnostics.DebuggerStepThroughAttribute()]
108    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
109    public partial class SendJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
110       
111        private object[] results;
112       
113        public SendJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
114                base(exception, cancelled, userState) {
115            this.results = results;
116        }
117       
118        public HeuristicLab.Hive.Contracts.ResponseJob Result {
119            get {
120                base.RaiseExceptionIfNecessary();
121                return ((HeuristicLab.Hive.Contracts.ResponseJob)(this.results[0]));
122            }
123        }
124    }
125   
126    [System.Diagnostics.DebuggerStepThroughAttribute()]
127    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
128    public partial class ProcessJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
129       
130        private object[] results;
131       
132        public ProcessJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
133                base(exception, cancelled, userState) {
134            this.results = results;
135        }
136       
137        public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
138            get {
139                base.RaiseExceptionIfNecessary();
140                return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
141            }
142        }
143    }
144   
145    [System.Diagnostics.DebuggerStepThroughAttribute()]
146    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
147    public partial class LogoutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
148       
149        private object[] results;
150       
151        public LogoutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
152                base(exception, cancelled, userState) {
153            this.results = results;
154        }
155       
156        public HeuristicLab.Hive.Contracts.Response Result {
157            get {
158                base.RaiseExceptionIfNecessary();
159                return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
160            }
161        }
162    }
163   
164    [System.Diagnostics.DebuggerStepThroughAttribute()]
165    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
166    public partial class ClientCommunicatorClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator>, HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator {
167       
168        private BeginOperationDelegate onBeginLoginDelegate;
169       
170        private EndOperationDelegate onEndLoginDelegate;
171       
172        private System.Threading.SendOrPostCallback onLoginCompletedDelegate;
173       
174        private BeginOperationDelegate onBeginProcessHeartBeatDelegate;
175       
176        private EndOperationDelegate onEndProcessHeartBeatDelegate;
177       
178        private System.Threading.SendOrPostCallback onProcessHeartBeatCompletedDelegate;
179       
180        private BeginOperationDelegate onBeginSendJobDelegate;
181       
182        private EndOperationDelegate onEndSendJobDelegate;
183       
184        private System.Threading.SendOrPostCallback onSendJobCompletedDelegate;
185       
186        private BeginOperationDelegate onBeginProcessJobResultDelegate;
187       
188        private EndOperationDelegate onEndProcessJobResultDelegate;
189       
190        private System.Threading.SendOrPostCallback onProcessJobResultCompletedDelegate;
191       
192        private BeginOperationDelegate onBeginLogoutDelegate;
193       
194        private EndOperationDelegate onEndLogoutDelegate;
195       
196        private System.Threading.SendOrPostCallback onLogoutCompletedDelegate;
197       
198        public ClientCommunicatorClient() {
199        }
200       
201        public ClientCommunicatorClient(string endpointConfigurationName) :
202                base(endpointConfigurationName) {
203        }
204       
205        public ClientCommunicatorClient(string endpointConfigurationName, string remoteAddress) :
206                base(endpointConfigurationName, remoteAddress) {
207        }
208       
209        public ClientCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
210                base(endpointConfigurationName, remoteAddress) {
211        }
212       
213        public ClientCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
214                base(binding, remoteAddress) {
215        }
216       
217        public event System.EventHandler<LoginCompletedEventArgs> LoginCompleted;
218       
219        public event System.EventHandler<ProcessHeartBeatCompletedEventArgs> ProcessHeartBeatCompleted;
220       
221        public event System.EventHandler<SendJobCompletedEventArgs> SendJobCompleted;
222       
223        public event System.EventHandler<ProcessJobResultCompletedEventArgs> ProcessJobResultCompleted;
224       
225        public event System.EventHandler<LogoutCompletedEventArgs> LogoutCompleted;
226       
227        public HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
228            return base.Channel.Login(clientInfo);
229        }
230       
231        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
232        public System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState) {
233            return base.Channel.BeginLogin(clientInfo, callback, asyncState);
234        }
235       
236        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
237        public HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result) {
238            return base.Channel.EndLogin(result);
239        }
240       
241        private System.IAsyncResult OnBeginLogin(object[] inValues, System.AsyncCallback callback, object asyncState) {
242            HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo = ((HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo)(inValues[0]));
243            return this.BeginLogin(clientInfo, callback, asyncState);
244        }
245       
246        private object[] OnEndLogin(System.IAsyncResult result) {
247            HeuristicLab.Hive.Contracts.Response retVal = this.EndLogin(result);
248            return new object[] {
249                    retVal};
250        }
251       
252        private void OnLoginCompleted(object state) {
253            if ((this.LoginCompleted != null)) {
254                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
255                this.LoginCompleted(this, new LoginCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
256            }
257        }
258       
259        public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
260            this.LoginAsync(clientInfo, null);
261        }
262       
263        public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, object userState) {
264            if ((this.onBeginLoginDelegate == null)) {
265                this.onBeginLoginDelegate = new BeginOperationDelegate(this.OnBeginLogin);
266            }
267            if ((this.onEndLoginDelegate == null)) {
268                this.onEndLoginDelegate = new EndOperationDelegate(this.OnEndLogin);
269            }
270            if ((this.onLoginCompletedDelegate == null)) {
271                this.onLoginCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLoginCompleted);
272            }
273            base.InvokeAsync(this.onBeginLoginDelegate, new object[] {
274                        clientInfo}, this.onEndLoginDelegate, this.onLoginCompletedDelegate, userState);
275        }
276       
277        public HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
278            return base.Channel.ProcessHeartBeat(hbData);
279        }
280       
281        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
282        public System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState) {
283            return base.Channel.BeginProcessHeartBeat(hbData, callback, asyncState);
284        }
285       
286        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
287        public HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result) {
288            return base.Channel.EndProcessHeartBeat(result);
289        }
290       
291        private System.IAsyncResult OnBeginProcessHeartBeat(object[] inValues, System.AsyncCallback callback, object asyncState) {
292            HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData = ((HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData)(inValues[0]));
293            return this.BeginProcessHeartBeat(hbData, callback, asyncState);
294        }
295       
296        private object[] OnEndProcessHeartBeat(System.IAsyncResult result) {
297            HeuristicLab.Hive.Contracts.ResponseHB retVal = this.EndProcessHeartBeat(result);
298            return new object[] {
299                    retVal};
300        }
301       
302        private void OnProcessHeartBeatCompleted(object state) {
303            if ((this.ProcessHeartBeatCompleted != null)) {
304                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
305                this.ProcessHeartBeatCompleted(this, new ProcessHeartBeatCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
306            }
307        }
308       
309        public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
310            this.ProcessHeartBeatAsync(hbData, null);
311        }
312       
313        public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, object userState) {
314            if ((this.onBeginProcessHeartBeatDelegate == null)) {
315                this.onBeginProcessHeartBeatDelegate = new BeginOperationDelegate(this.OnBeginProcessHeartBeat);
316            }
317            if ((this.onEndProcessHeartBeatDelegate == null)) {
318                this.onEndProcessHeartBeatDelegate = new EndOperationDelegate(this.OnEndProcessHeartBeat);
319            }
320            if ((this.onProcessHeartBeatCompletedDelegate == null)) {
321                this.onProcessHeartBeatCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessHeartBeatCompleted);
322            }
323            base.InvokeAsync(this.onBeginProcessHeartBeatDelegate, new object[] {
324                        hbData}, this.onEndProcessHeartBeatDelegate, this.onProcessHeartBeatCompletedDelegate, userState);
325        }
326       
327        public HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId) {
328            return base.Channel.SendJob(clientId);
329        }
330       
331        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
332        public System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
333            return base.Channel.BeginSendJob(clientId, callback, asyncState);
334        }
335       
336        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
337        public HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result) {
338            return base.Channel.EndSendJob(result);
339        }
340       
341        private System.IAsyncResult OnBeginSendJob(object[] inValues, System.AsyncCallback callback, object asyncState) {
342            System.Guid clientId = ((System.Guid)(inValues[0]));
343            return this.BeginSendJob(clientId, callback, asyncState);
344        }
345       
346        private object[] OnEndSendJob(System.IAsyncResult result) {
347            HeuristicLab.Hive.Contracts.ResponseJob retVal = this.EndSendJob(result);
348            return new object[] {
349                    retVal};
350        }
351       
352        private void OnSendJobCompleted(object state) {
353            if ((this.SendJobCompleted != null)) {
354                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
355                this.SendJobCompleted(this, new SendJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
356            }
357        }
358       
359        public void SendJobAsync(System.Guid clientId) {
360            this.SendJobAsync(clientId, null);
361        }
362       
363        public void SendJobAsync(System.Guid clientId, object userState) {
364            if ((this.onBeginSendJobDelegate == null)) {
365                this.onBeginSendJobDelegate = new BeginOperationDelegate(this.OnBeginSendJob);
366            }
367            if ((this.onEndSendJobDelegate == null)) {
368                this.onEndSendJobDelegate = new EndOperationDelegate(this.OnEndSendJob);
369            }
370            if ((this.onSendJobCompletedDelegate == null)) {
371                this.onSendJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobCompleted);
372            }
373            base.InvokeAsync(this.onBeginSendJobDelegate, new object[] {
374                        clientId}, this.onEndSendJobDelegate, this.onSendJobCompletedDelegate, userState);
375        }
376       
377        public HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessJobResult(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished) {
378            return base.Channel.ProcessJobResult(clientId, jobId, result, percentage, exception, finished);
379        }
380       
381        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
382        public System.IAsyncResult BeginProcessJobResult(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished, System.AsyncCallback callback, object asyncState) {
383            return base.Channel.BeginProcessJobResult(clientId, jobId, result, percentage, exception, finished, callback, asyncState);
384        }
385       
386        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
387        public HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessJobResult(System.IAsyncResult result) {
388            return base.Channel.EndProcessJobResult(result);
389        }
390       
391        private System.IAsyncResult OnBeginProcessJobResult(object[] inValues, System.AsyncCallback callback, object asyncState) {
392            System.Guid clientId = ((System.Guid)(inValues[0]));
393            long jobId = ((long)(inValues[1]));
394            byte[] result = ((byte[])(inValues[2]));
395            double percentage = ((double)(inValues[3]));
396            System.Exception exception = ((System.Exception)(inValues[4]));
397            bool finished = ((bool)(inValues[5]));
398            return this.BeginProcessJobResult(clientId, jobId, result, percentage, exception, finished, callback, asyncState);
399        }
400       
401        private object[] OnEndProcessJobResult(System.IAsyncResult result) {
402            HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndProcessJobResult(result);
403            return new object[] {
404                    retVal};
405        }
406       
407        private void OnProcessJobResultCompleted(object state) {
408            if ((this.ProcessJobResultCompleted != null)) {
409                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
410                this.ProcessJobResultCompleted(this, new ProcessJobResultCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
411            }
412        }
413       
414        public void ProcessJobResultAsync(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished) {
415            this.ProcessJobResultAsync(clientId, jobId, result, percentage, exception, finished, null);
416        }
417       
418        public void ProcessJobResultAsync(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished, object userState) {
419            if ((this.onBeginProcessJobResultDelegate == null)) {
420                this.onBeginProcessJobResultDelegate = new BeginOperationDelegate(this.OnBeginProcessJobResult);
421            }
422            if ((this.onEndProcessJobResultDelegate == null)) {
423                this.onEndProcessJobResultDelegate = new EndOperationDelegate(this.OnEndProcessJobResult);
424            }
425            if ((this.onProcessJobResultCompletedDelegate == null)) {
426                this.onProcessJobResultCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessJobResultCompleted);
427            }
428            base.InvokeAsync(this.onBeginProcessJobResultDelegate, new object[] {
429                        clientId,
430                        jobId,
431                        result,
432                        percentage,
433                        exception,
434                        finished}, this.onEndProcessJobResultDelegate, this.onProcessJobResultCompletedDelegate, userState);
435        }
436       
437        public HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId) {
438            return base.Channel.Logout(clientId);
439        }
440       
441        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
442        public System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
443            return base.Channel.BeginLogout(clientId, callback, asyncState);
444        }
445       
446        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
447        public HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result) {
448            return base.Channel.EndLogout(result);
449        }
450       
451        private System.IAsyncResult OnBeginLogout(object[] inValues, System.AsyncCallback callback, object asyncState) {
452            System.Guid clientId = ((System.Guid)(inValues[0]));
453            return this.BeginLogout(clientId, callback, asyncState);
454        }
455       
456        private object[] OnEndLogout(System.IAsyncResult result) {
457            HeuristicLab.Hive.Contracts.Response retVal = this.EndLogout(result);
458            return new object[] {
459                    retVal};
460        }
461       
462        private void OnLogoutCompleted(object state) {
463            if ((this.LogoutCompleted != null)) {
464                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
465                this.LogoutCompleted(this, new LogoutCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
466            }
467        }
468       
469        public void LogoutAsync(System.Guid clientId) {
470            this.LogoutAsync(clientId, null);
471        }
472       
473        public void LogoutAsync(System.Guid clientId, object userState) {
474            if ((this.onBeginLogoutDelegate == null)) {
475                this.onBeginLogoutDelegate = new BeginOperationDelegate(this.OnBeginLogout);
476            }
477            if ((this.onEndLogoutDelegate == null)) {
478                this.onEndLogoutDelegate = new EndOperationDelegate(this.OnEndLogout);
479            }
480            if ((this.onLogoutCompletedDelegate == null)) {
481                this.onLogoutCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLogoutCompleted);
482            }
483            base.InvokeAsync(this.onBeginLogoutDelegate, new object[] {
484                        clientId}, this.onEndLogoutDelegate, this.onLogoutCompletedDelegate, userState);
485        }
486    }
487}
Note: See TracBrowser for help on using the repository browser.