Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/09 15:47:37 (15 years ago)
Author:
kgrading
Message:

bugfixes and updated webservice (#529)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/Service References/ServerService/Reference.cs

    r1147 r1366  
    2727        HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result);
    2828       
    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(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 BeginSendJobResult(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 EndSendJobResult(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);
    5252       
    5353        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
     
    8888    [System.Diagnostics.DebuggerStepThroughAttribute()]
    8989    [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 {
    9191       
    9292        private object[] results;
    9393       
    94         public SendHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
     94        public ProcessHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
    9595                base(exception, cancelled, userState) {
    9696            this.results = results;
     
    107107    [System.Diagnostics.DebuggerStepThroughAttribute()]
    108108    [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 {
    110110       
    111111        private object[] results;
    112112       
    113         public PullJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
     113        public SendJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
    114114                base(exception, cancelled, userState) {
    115115            this.results = results;
     
    126126    [System.Diagnostics.DebuggerStepThroughAttribute()]
    127127    [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 {
    129129       
    130130        private object[] results;
    131131       
    132         public SendJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
     132        public ProcessJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
    133133                base(exception, cancelled, userState) {
    134134            this.results = results;
     
    172172        private System.Threading.SendOrPostCallback onLoginCompletedDelegate;
    173173       
    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;
     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;
    191191       
    192192        private BeginOperationDelegate onBeginLogoutDelegate;
     
    217217        public event System.EventHandler<LoginCompletedEventArgs> LoginCompleted;
    218218       
    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;
    224224       
    225225        public event System.EventHandler<LogoutCompletedEventArgs> LogoutCompleted;
     
    275275        }
    276276       
    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) {
     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) {
    292292            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);
     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);
    298298            return new object[] {
    299299                    retVal};
    300300        }
    301301       
    302         private void OnSendHeartBeatCompleted(object state) {
    303             if ((this.SendHeartBeatCompleted != null)) {
     302        private void OnProcessHeartBeatCompleted(object state) {
     303            if ((this.ProcessHeartBeatCompleted != null)) {
    304304                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) {
     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) {
    342342            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);
     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);
    348348            return new object[] {
    349349                    retVal};
    350350        }
    351351       
    352         private void OnPullJobCompleted(object state) {
    353             if ((this.PullJobCompleted != null)) {
     352        private void OnSendJobCompleted(object state) {
     353            if ((this.SendJobCompleted != null)) {
    354354                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(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 BeginSendJobResult(System.Guid clientId, long jobId, byte[] result, double percentage, System.Exception exception, bool finished, System.AsyncCallback callback, object asyncState) {
    383             return base.Channel.BeginSendJobResult(clientId, jobId, result, percentage, exception, 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) {
     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) {
    392392            System.Guid clientId = ((System.Guid)(inValues[0]));
    393393            long jobId = ((long)(inValues[1]));
     
    396396            System.Exception exception = ((System.Exception)(inValues[4]));
    397397            bool finished = ((bool)(inValues[5]));
    398             return this.BeginSendJobResult(clientId, jobId, result, percentage, exception, finished, callback, asyncState);
    399         }
    400        
    401         private object[] OnEndSendJobResult(System.IAsyncResult result) {
    402             HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndSendJobResult(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);
    403403            return new object[] {
    404404                    retVal};
    405405        }
    406406       
    407         private void OnSendJobResultCompleted(object state) {
    408             if ((this.SendJobResultCompleted != null)) {
     407        private void OnProcessJobResultCompleted(object state) {
     408            if ((this.ProcessJobResultCompleted != null)) {
    409409                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.onBeginSendJobResultDelegate == null)) {
    420                 this.onBeginSendJobResultDelegate = new BeginOperationDelegate(this.OnBeginSendJobResult);
    421             }
    422             if ((this.onEndSendJobResultDelegate == null)) {
    423                 this.onEndSendJobResultDelegate = new EndOperationDelegate(this.OnEndSendJobResult);
    424             }
    425             if ((this.onSendJobResultCompletedDelegate == null)) {
    426                 this.onSendJobResultCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobResultCompleted);
    427             }
    428             base.InvokeAsync(this.onBeginSendJobResultDelegate, 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[] {
    429429                        clientId,
    430430                        jobId,
     
    432432                        percentage,
    433433                        exception,
    434                         finished}, this.onEndSendJobResultDelegate, this.onSendJobResultCompletedDelegate, userState);
     434                        finished}, this.onEndProcessJobResultDelegate, this.onProcessJobResultCompletedDelegate, userState);
    435435        }
    436436       
Note: See TracChangeset for help on using the changeset viewer.