Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/09 18:26:46 (16 years ago)
Author:
svonolfe
Message:

Changed SendJobResult Interface (#351)

File:
1 edited

Legend:

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

    r1007 r1103  
    4444       
    4545        [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);
     46        HeuristicLab.Hive.Contracts.ResponseResultReceived SendJobResult(System.Guid clientId, long jobId, byte[] result, System.Exception exception, bool finished);
    4747       
    4848        [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);
     49        System.IAsyncResult BeginSendJobResult(System.Guid clientId, long jobId, byte[] result, System.Exception exception, bool finished, System.AsyncCallback callback, object asyncState);
    5050       
    5151        HeuristicLab.Hive.Contracts.ResponseResultReceived EndSendJobResult(System.IAsyncResult result);
     
    375375        }
    376376       
    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);
     377        public HeuristicLab.Hive.Contracts.ResponseResultReceived SendJobResult(System.Guid clientId, long jobId, byte[] result, System.Exception exception, bool finished) {
     378            return base.Channel.SendJobResult(clientId, jobId, result, exception, finished);
     379        }
     380       
     381        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
     382        public System.IAsyncResult BeginSendJobResult(System.Guid clientId, long jobId, byte[] result, System.Exception exception, bool finished, System.AsyncCallback callback, object asyncState) {
     383            return base.Channel.BeginSendJobResult(clientId, jobId, result, exception, finished, callback, asyncState);
    384384        }
    385385       
     
    390390       
    391391        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);
     392            System.Guid clientId = ((System.Guid)(inValues[0]));
     393            long jobId = ((long)(inValues[1]));
     394            byte[] result = ((byte[])(inValues[2]));
     395            System.Exception exception = ((System.Exception)(inValues[3]));
     396            bool finished = ((bool)(inValues[4]));
     397            return this.BeginSendJobResult(clientId, jobId, result, exception, finished, callback, asyncState);
    395398        }
    396399       
     
    408411        }
    409412       
    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) {
     413        public void SendJobResultAsync(System.Guid clientId, long jobId, byte[] result, System.Exception exception, bool finished) {
     414            this.SendJobResultAsync(clientId, jobId, result, exception, finished, null);
     415        }
     416       
     417        public void SendJobResultAsync(System.Guid clientId, long jobId, byte[] result, System.Exception exception, bool finished, object userState) {
    415418            if ((this.onBeginSendJobResultDelegate == null)) {
    416419                this.onBeginSendJobResultDelegate = new BeginOperationDelegate(this.OnBeginSendJobResult);
     
    423426            }
    424427            base.InvokeAsync(this.onBeginSendJobResultDelegate, new object[] {
     428                        clientId,
     429                        jobId,
    425430                        result,
     431                        exception,
    426432                        finished}, this.onEndSendJobResultDelegate, this.onSendJobResultCompletedDelegate, userState);
    427433        }
Note: See TracChangeset for help on using the changeset viewer.