Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 993 was 993, checked in by kgrading, 15 years ago

refactored for #437

File size: 26.0 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/SendHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/SendHeartBeatResponse")]
30        HeuristicLab.Hive.Contracts.ResponseHB SendHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData);
31       
32        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/SendHeartBeatResponse")]
33        System.IAsyncResult BeginSendHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState);
34       
35        HeuristicLab.Hive.Contracts.ResponseHB EndSendHeartBeat(System.IAsyncResult result);
36       
37        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/PullJob", ReplyAction="http://tempuri.org/IClientCommunicator/PullJobResponse")]
38        HeuristicLab.Hive.Contracts.ResponseJob PullJob(System.Guid clientId);
39       
40        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/PullJob", ReplyAction="http://tempuri.org/IClientCommunicator/PullJobResponse")]
41        System.IAsyncResult BeginPullJob(System.Guid clientId, System.AsyncCallback callback, object asyncState);
42       
43        HeuristicLab.Hive.Contracts.ResponseJob EndPullJob(System.IAsyncResult result);
44       
45        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResultResponse")]
46        HeuristicLab.Hive.Contracts.ResponseResultReceived SendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished);
47       
48        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResultResponse")]
49        System.IAsyncResult BeginSendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished, System.AsyncCallback callback, object asyncState);
50       
51        HeuristicLab.Hive.Contracts.ResponseResultReceived EndSendJobResult(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 SendHeartBeatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
91       
92        private object[] results;
93       
94        public SendHeartBeatCompletedEventArgs(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 PullJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
110       
111        private object[] results;
112       
113        public PullJobCompletedEventArgs(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 SendJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
129       
130        private object[] results;
131       
132        public SendJobResultCompletedEventArgs(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 onBeginSendHeartBeatDelegate;
175       
176        private EndOperationDelegate onEndSendHeartBeatDelegate;
177       
178        private System.Threading.SendOrPostCallback onSendHeartBeatCompletedDelegate;
179       
180        private BeginOperationDelegate onBeginPullJobDelegate;
181       
182        private EndOperationDelegate onEndPullJobDelegate;
183       
184        private System.Threading.SendOrPostCallback onPullJobCompletedDelegate;
185       
186        private BeginOperationDelegate onBeginSendJobResultDelegate;
187       
188        private EndOperationDelegate onEndSendJobResultDelegate;
189       
190        private System.Threading.SendOrPostCallback onSendJobResultCompletedDelegate;
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<SendHeartBeatCompletedEventArgs> SendHeartBeatCompleted;
220       
221        public event System.EventHandler<PullJobCompletedEventArgs> PullJobCompleted;
222       
223        public event System.EventHandler<SendJobResultCompletedEventArgs> SendJobResultCompleted;
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 SendHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
278            return base.Channel.SendHeartBeat(hbData);
279        }
280       
281        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
282        public System.IAsyncResult BeginSendHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState) {
283            return base.Channel.BeginSendHeartBeat(hbData, callback, asyncState);
284        }
285       
286        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
287        public HeuristicLab.Hive.Contracts.ResponseHB EndSendHeartBeat(System.IAsyncResult result) {
288            return base.Channel.EndSendHeartBeat(result);
289        }
290       
291        private System.IAsyncResult OnBeginSendHeartBeat(object[] inValues, System.AsyncCallback callback, object asyncState) {
292            HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData = ((HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData)(inValues[0]));
293            return this.BeginSendHeartBeat(hbData, callback, asyncState);
294        }
295       
296        private object[] OnEndSendHeartBeat(System.IAsyncResult result) {
297            HeuristicLab.Hive.Contracts.ResponseHB retVal = this.EndSendHeartBeat(result);
298            return new object[] {
299                    retVal};
300        }
301       
302        private void OnSendHeartBeatCompleted(object state) {
303            if ((this.SendHeartBeatCompleted != null)) {
304                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
305                this.SendHeartBeatCompleted(this, new SendHeartBeatCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
306            }
307        }
308       
309        public void SendHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
310            this.SendHeartBeatAsync(hbData, null);
311        }
312       
313        public void SendHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, object userState) {
314            if ((this.onBeginSendHeartBeatDelegate == null)) {
315                this.onBeginSendHeartBeatDelegate = new BeginOperationDelegate(this.OnBeginSendHeartBeat);
316            }
317            if ((this.onEndSendHeartBeatDelegate == null)) {
318                this.onEndSendHeartBeatDelegate = new EndOperationDelegate(this.OnEndSendHeartBeat);
319            }
320            if ((this.onSendHeartBeatCompletedDelegate == null)) {
321                this.onSendHeartBeatCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendHeartBeatCompleted);
322            }
323            base.InvokeAsync(this.onBeginSendHeartBeatDelegate, new object[] {
324                        hbData}, this.onEndSendHeartBeatDelegate, this.onSendHeartBeatCompletedDelegate, userState);
325        }
326       
327        public HeuristicLab.Hive.Contracts.ResponseJob PullJob(System.Guid clientId) {
328            return base.Channel.PullJob(clientId);
329        }
330       
331        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
332        public System.IAsyncResult BeginPullJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
333            return base.Channel.BeginPullJob(clientId, callback, asyncState);
334        }
335       
336        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
337        public HeuristicLab.Hive.Contracts.ResponseJob EndPullJob(System.IAsyncResult result) {
338            return base.Channel.EndPullJob(result);
339        }
340       
341        private System.IAsyncResult OnBeginPullJob(object[] inValues, System.AsyncCallback callback, object asyncState) {
342            System.Guid clientId = ((System.Guid)(inValues[0]));
343            return this.BeginPullJob(clientId, callback, asyncState);
344        }
345       
346        private object[] OnEndPullJob(System.IAsyncResult result) {
347            HeuristicLab.Hive.Contracts.ResponseJob retVal = this.EndPullJob(result);
348            return new object[] {
349                    retVal};
350        }
351       
352        private void OnPullJobCompleted(object state) {
353            if ((this.PullJobCompleted != null)) {
354                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
355                this.PullJobCompleted(this, new PullJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
356            }
357        }
358       
359        public void PullJobAsync(System.Guid clientId) {
360            this.PullJobAsync(clientId, null);
361        }
362       
363        public void PullJobAsync(System.Guid clientId, object userState) {
364            if ((this.onBeginPullJobDelegate == null)) {
365                this.onBeginPullJobDelegate = new BeginOperationDelegate(this.OnBeginPullJob);
366            }
367            if ((this.onEndPullJobDelegate == null)) {
368                this.onEndPullJobDelegate = new EndOperationDelegate(this.OnEndPullJob);
369            }
370            if ((this.onPullJobCompletedDelegate == null)) {
371                this.onPullJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnPullJobCompleted);
372            }
373            base.InvokeAsync(this.onBeginPullJobDelegate, new object[] {
374                        clientId}, this.onEndPullJobDelegate, this.onPullJobCompletedDelegate, userState);
375        }
376       
377        public HeuristicLab.Hive.Contracts.ResponseResultReceived SendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished) {
378            return base.Channel.SendJobResult(Result, finished);
379        }
380       
381        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
382        public System.IAsyncResult BeginSendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished, System.AsyncCallback callback, object asyncState) {
383            return base.Channel.BeginSendJobResult(Result, finished, callback, asyncState);
384        }
385       
386        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
387        public HeuristicLab.Hive.Contracts.ResponseResultReceived EndSendJobResult(System.IAsyncResult result) {
388            return base.Channel.EndSendJobResult(result);
389        }
390       
391        private System.IAsyncResult OnBeginSendJobResult(object[] inValues, System.AsyncCallback callback, object asyncState) {
392            HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result = ((HeuristicLab.Hive.Contracts.BusinessObjects.JobResult)(inValues[0]));
393            bool finished = ((bool)(inValues[1]));
394            return this.BeginSendJobResult(Result, finished, callback, asyncState);
395        }
396       
397        private object[] OnEndSendJobResult(System.IAsyncResult result) {
398            HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndSendJobResult(result);
399            return new object[] {
400                    retVal};
401        }
402       
403        private void OnSendJobResultCompleted(object state) {
404            if ((this.SendJobResultCompleted != null)) {
405                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
406                this.SendJobResultCompleted(this, new SendJobResultCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
407            }
408        }
409       
410        public void SendJobResultAsync(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished) {
411            this.SendJobResultAsync(Result, finished, null);
412        }
413       
414        public void SendJobResultAsync(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished, object userState) {
415            if ((this.onBeginSendJobResultDelegate == null)) {
416                this.onBeginSendJobResultDelegate = new BeginOperationDelegate(this.OnBeginSendJobResult);
417            }
418            if ((this.onEndSendJobResultDelegate == null)) {
419                this.onEndSendJobResultDelegate = new EndOperationDelegate(this.OnEndSendJobResult);
420            }
421            if ((this.onSendJobResultCompletedDelegate == null)) {
422                this.onSendJobResultCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobResultCompleted);
423            }
424            base.InvokeAsync(this.onBeginSendJobResultDelegate, new object[] {
425                        Result,
426                        finished}, this.onEndSendJobResultDelegate, this.onSendJobResultCompletedDelegate, userState);
427        }
428       
429        public HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId) {
430            return base.Channel.Logout(clientId);
431        }
432       
433        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
434        public System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
435            return base.Channel.BeginLogout(clientId, callback, asyncState);
436        }
437       
438        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
439        public HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result) {
440            return base.Channel.EndLogout(result);
441        }
442       
443        private System.IAsyncResult OnBeginLogout(object[] inValues, System.AsyncCallback callback, object asyncState) {
444            System.Guid clientId = ((System.Guid)(inValues[0]));
445            return this.BeginLogout(clientId, callback, asyncState);
446        }
447       
448        private object[] OnEndLogout(System.IAsyncResult result) {
449            HeuristicLab.Hive.Contracts.Response retVal = this.EndLogout(result);
450            return new object[] {
451                    retVal};
452        }
453       
454        private void OnLogoutCompleted(object state) {
455            if ((this.LogoutCompleted != null)) {
456                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
457                this.LogoutCompleted(this, new LogoutCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
458            }
459        }
460       
461        public void LogoutAsync(System.Guid clientId) {
462            this.LogoutAsync(clientId, null);
463        }
464       
465        public void LogoutAsync(System.Guid clientId, object userState) {
466            if ((this.onBeginLogoutDelegate == null)) {
467                this.onBeginLogoutDelegate = new BeginOperationDelegate(this.OnBeginLogout);
468            }
469            if ((this.onEndLogoutDelegate == null)) {
470                this.onEndLogoutDelegate = new EndOperationDelegate(this.OnEndLogout);
471            }
472            if ((this.onLogoutCompletedDelegate == null)) {
473                this.onLogoutCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLogoutCompleted);
474            }
475            base.InvokeAsync(this.onBeginLogoutDelegate, new object[] {
476                        clientId}, this.onEndLogoutDelegate, this.onLogoutCompletedDelegate, userState);
477        }
478    }
479}
Note: See TracBrowser for help on using the repository browser.