Changeset 1366 for trunk/sources/HeuristicLab.Hive.Client.Communication/Service References/ServerService/Reference.cs
- Timestamp:
- 03/19/09 15:47:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/Service References/ServerService/Reference.cs
r1147 r1366 27 27 HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result); 28 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 Begin SendHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState);34 35 HeuristicLab.Hive.Contracts.ResponseHB End SendHeartBeat(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 Begin PullJob(System.Guid clientId, System.AsyncCallback callback, object asyncState);42 43 HeuristicLab.Hive.Contracts.ResponseJob End PullJob(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(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/ SendJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResultResponse")]49 System.IAsyncResult Begin SendJobResult(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 End SendJobResult(System.IAsyncResult result);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 52 53 53 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")] … … 88 88 [System.Diagnostics.DebuggerStepThroughAttribute()] 89 89 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 90 public partial class SendHeartBeatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {90 public partial class ProcessHeartBeatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 91 91 92 92 private object[] results; 93 93 94 public SendHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :94 public ProcessHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 95 95 base(exception, cancelled, userState) { 96 96 this.results = results; … … 107 107 [System.Diagnostics.DebuggerStepThroughAttribute()] 108 108 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 109 public partial class PullJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {109 public partial class SendJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 110 110 111 111 private object[] results; 112 112 113 public PullJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :113 public SendJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 114 114 base(exception, cancelled, userState) { 115 115 this.results = results; … … 126 126 [System.Diagnostics.DebuggerStepThroughAttribute()] 127 127 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 128 public partial class SendJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {128 public partial class ProcessJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 129 129 130 130 private object[] results; 131 131 132 public SendJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :132 public ProcessJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 133 133 base(exception, cancelled, userState) { 134 134 this.results = results; … … 172 172 private System.Threading.SendOrPostCallback onLoginCompletedDelegate; 173 173 174 private BeginOperationDelegate onBegin SendHeartBeatDelegate;175 176 private EndOperationDelegate onEnd SendHeartBeatDelegate;177 178 private System.Threading.SendOrPostCallback on SendHeartBeatCompletedDelegate;179 180 private BeginOperationDelegate onBegin PullJobDelegate;181 182 private EndOperationDelegate onEnd PullJobDelegate;183 184 private System.Threading.SendOrPostCallback on PullJobCompletedDelegate;185 186 private BeginOperationDelegate onBegin SendJobResultDelegate;187 188 private EndOperationDelegate onEnd SendJobResultDelegate;189 190 private System.Threading.SendOrPostCallback on SendJobResultCompletedDelegate;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 191 192 192 private BeginOperationDelegate onBeginLogoutDelegate; … … 217 217 public event System.EventHandler<LoginCompletedEventArgs> LoginCompleted; 218 218 219 public event System.EventHandler< SendHeartBeatCompletedEventArgs> SendHeartBeatCompleted;220 221 public event System.EventHandler< PullJobCompletedEventArgs> PullJobCompleted;222 223 public event System.EventHandler< SendJobResultCompletedEventArgs> SendJobResultCompleted;219 public event System.EventHandler<ProcessHeartBeatCompletedEventArgs> ProcessHeartBeatCompleted; 220 221 public event System.EventHandler<SendJobCompletedEventArgs> SendJobCompleted; 222 223 public event System.EventHandler<ProcessJobResultCompletedEventArgs> ProcessJobResultCompleted; 224 224 225 225 public event System.EventHandler<LogoutCompletedEventArgs> LogoutCompleted; … … 275 275 } 276 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 Begin SendHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState) {283 return base.Channel.Begin SendHeartBeat(hbData, callback, asyncState);284 } 285 286 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 287 public HeuristicLab.Hive.Contracts.ResponseHB End SendHeartBeat(System.IAsyncResult result) {288 return base.Channel.End SendHeartBeat(result);289 } 290 291 private System.IAsyncResult OnBegin SendHeartBeat(object[] inValues, System.AsyncCallback callback, object asyncState) {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 292 HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData = ((HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData)(inValues[0])); 293 return this.Begin SendHeartBeat(hbData, callback, asyncState);294 } 295 296 private object[] OnEnd SendHeartBeat(System.IAsyncResult result) {297 HeuristicLab.Hive.Contracts.ResponseHB retVal = this.End SendHeartBeat(result);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 298 return new object[] { 299 299 retVal}; 300 300 } 301 301 302 private void On SendHeartBeatCompleted(object state) {303 if ((this. SendHeartBeatCompleted != null)) {302 private void OnProcessHeartBeatCompleted(object state) { 303 if ((this.ProcessHeartBeatCompleted != null)) { 304 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.onBegin SendHeartBeatDelegate == null)) {315 this.onBegin SendHeartBeatDelegate = new BeginOperationDelegate(this.OnBeginSendHeartBeat);316 } 317 if ((this.onEnd SendHeartBeatDelegate == null)) {318 this.onEnd SendHeartBeatDelegate = new EndOperationDelegate(this.OnEndSendHeartBeat);319 } 320 if ((this.on SendHeartBeatCompletedDelegate == null)) {321 this.on SendHeartBeatCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendHeartBeatCompleted);322 } 323 base.InvokeAsync(this.onBegin SendHeartBeatDelegate, new object[] {324 hbData}, this.onEnd SendHeartBeatDelegate, 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 Begin PullJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) {333 return base.Channel.Begin PullJob(clientId, callback, asyncState);334 } 335 336 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 337 public HeuristicLab.Hive.Contracts.ResponseJob End PullJob(System.IAsyncResult result) {338 return base.Channel.End PullJob(result);339 } 340 341 private System.IAsyncResult OnBegin PullJob(object[] inValues, System.AsyncCallback callback, object asyncState) {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 342 System.Guid clientId = ((System.Guid)(inValues[0])); 343 return this.Begin PullJob(clientId, callback, asyncState);344 } 345 346 private object[] OnEnd PullJob(System.IAsyncResult result) {347 HeuristicLab.Hive.Contracts.ResponseJob retVal = this.End PullJob(result);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 348 return new object[] { 349 349 retVal}; 350 350 } 351 351 352 private void On PullJobCompleted(object state) {353 if ((this. PullJobCompleted != null)) {352 private void OnSendJobCompleted(object state) { 353 if ((this.SendJobCompleted != null)) { 354 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.onBegin PullJobDelegate == null)) {365 this.onBegin PullJobDelegate = new BeginOperationDelegate(this.OnBeginPullJob);366 } 367 if ((this.onEnd PullJobDelegate == null)) {368 this.onEnd PullJobDelegate = new EndOperationDelegate(this.OnEndPullJob);369 } 370 if ((this.on PullJobCompletedDelegate == null)) {371 this.on PullJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnPullJobCompleted);372 } 373 base.InvokeAsync(this.onBegin PullJobDelegate, new object[] {374 clientId}, this.onEnd PullJobDelegate, this.onPullJobCompletedDelegate, userState);375 } 376 377 public HeuristicLab.Hive.Contracts.ResponseResultReceived SendJobResult(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished) {378 return base.Channel. SendJobResult(clientId, jobId, result, percentage, exception, finished);379 } 380 381 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 382 public System.IAsyncResult Begin SendJobResult(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished, System.AsyncCallback callback, object asyncState) {383 return base.Channel.Begin SendJobResult(clientId, jobId, result, percentage, exception, finished, callback, asyncState);384 } 385 386 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 387 public HeuristicLab.Hive.Contracts.ResponseResultReceived End SendJobResult(System.IAsyncResult result) {388 return base.Channel.End SendJobResult(result);389 } 390 391 private System.IAsyncResult OnBegin SendJobResult(object[] inValues, System.AsyncCallback callback, object asyncState) {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 392 System.Guid clientId = ((System.Guid)(inValues[0])); 393 393 long jobId = ((long)(inValues[1])); … … 396 396 System.Exception exception = ((System.Exception)(inValues[4])); 397 397 bool finished = ((bool)(inValues[5])); 398 return this.Begin SendJobResult(clientId, jobId, result, percentage, exception, finished, callback, asyncState);399 } 400 401 private object[] OnEnd SendJobResult(System.IAsyncResult result) {402 HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.End SendJobResult(result);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 403 return new object[] { 404 404 retVal}; 405 405 } 406 406 407 private void On SendJobResultCompleted(object state) {408 if ((this. SendJobResultCompleted != null)) {407 private void OnProcessJobResultCompleted(object state) { 408 if ((this.ProcessJobResultCompleted != null)) { 409 409 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 410 this. SendJobResultCompleted(this, new SendJobResultCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));411 } 412 } 413 414 public void SendJobResultAsync(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished) {415 this. SendJobResultAsync(clientId, jobId, result, percentage, exception, finished, null);416 } 417 418 public void SendJobResultAsync(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished, object userState) {419 if ((this.onBegin SendJobResultDelegate == null)) {420 this.onBegin SendJobResultDelegate = new BeginOperationDelegate(this.OnBeginSendJobResult);421 } 422 if ((this.onEnd SendJobResultDelegate == null)) {423 this.onEnd SendJobResultDelegate = new EndOperationDelegate(this.OnEndSendJobResult);424 } 425 if ((this.on SendJobResultCompletedDelegate == null)) {426 this.on SendJobResultCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobResultCompleted);427 } 428 base.InvokeAsync(this.onBegin SendJobResultDelegate, new object[] {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 429 clientId, 430 430 jobId, … … 432 432 percentage, 433 433 exception, 434 finished}, this.onEnd SendJobResultDelegate, this.onSendJobResultCompletedDelegate, userState);434 finished}, this.onEndProcessJobResultDelegate, this.onProcessJobResultCompletedDelegate, userState); 435 435 } 436 436
Note: See TracChangeset
for help on using the changeset viewer.