//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.3053
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace HeuristicLab.Hive.Client.Communication.ServerService {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServerService.IClientCommunicator")]
public interface IClientCommunicator {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]
System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]
HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]
System.IAsyncResult BeginStoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResult(System.IAsyncResult result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]
HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]
System.IAsyncResult BeginProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessSnapshot(System.IAsyncResult result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
HeuristicLab.Hive.Contracts.Response IsJobStillNeeded(System.Guid jobId);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]
System.IAsyncResult BeginIsJobStillNeeded(System.Guid jobId, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.Response EndIsJobStillNeeded(System.IAsyncResult result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]
HeuristicLab.Hive.Contracts.ResponsePlugin SendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList);
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]
System.IAsyncResult BeginSendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList, System.AsyncCallback callback, object asyncState);
HeuristicLab.Hive.Contracts.ResponsePlugin EndSendPlugins(System.IAsyncResult result);
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public interface IClientCommunicatorChannel : HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator, System.ServiceModel.IClientChannel {
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class LoginCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public LoginCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.Response Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class ProcessHeartBeatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public ProcessHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.ResponseHB Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.ResponseHB)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class SendJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public SendJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.ResponseJob Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.ResponseJob)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class StoreFinishedJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public StoreFinishedJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class ProcessSnapshotCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public ProcessSnapshotCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class LogoutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public LogoutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.Response Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class IsJobStillNeededCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public IsJobStillNeededCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.Response Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class SendPluginsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public SendPluginsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public HeuristicLab.Hive.Contracts.ResponsePlugin Result {
get {
base.RaiseExceptionIfNecessary();
return ((HeuristicLab.Hive.Contracts.ResponsePlugin)(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class ClientCommunicatorClient : System.ServiceModel.ClientBase, HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator {
private BeginOperationDelegate onBeginLoginDelegate;
private EndOperationDelegate onEndLoginDelegate;
private System.Threading.SendOrPostCallback onLoginCompletedDelegate;
private BeginOperationDelegate onBeginProcessHeartBeatDelegate;
private EndOperationDelegate onEndProcessHeartBeatDelegate;
private System.Threading.SendOrPostCallback onProcessHeartBeatCompletedDelegate;
private BeginOperationDelegate onBeginSendJobDelegate;
private EndOperationDelegate onEndSendJobDelegate;
private System.Threading.SendOrPostCallback onSendJobCompletedDelegate;
private BeginOperationDelegate onBeginStoreFinishedJobResultDelegate;
private EndOperationDelegate onEndStoreFinishedJobResultDelegate;
private System.Threading.SendOrPostCallback onStoreFinishedJobResultCompletedDelegate;
private BeginOperationDelegate onBeginProcessSnapshotDelegate;
private EndOperationDelegate onEndProcessSnapshotDelegate;
private System.Threading.SendOrPostCallback onProcessSnapshotCompletedDelegate;
private BeginOperationDelegate onBeginLogoutDelegate;
private EndOperationDelegate onEndLogoutDelegate;
private System.Threading.SendOrPostCallback onLogoutCompletedDelegate;
private BeginOperationDelegate onBeginIsJobStillNeededDelegate;
private EndOperationDelegate onEndIsJobStillNeededDelegate;
private System.Threading.SendOrPostCallback onIsJobStillNeededCompletedDelegate;
private BeginOperationDelegate onBeginSendPluginsDelegate;
private EndOperationDelegate onEndSendPluginsDelegate;
private System.Threading.SendOrPostCallback onSendPluginsCompletedDelegate;
public ClientCommunicatorClient() {
}
public ClientCommunicatorClient(string endpointConfigurationName) :
base(endpointConfigurationName) {
}
public ClientCommunicatorClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public ClientCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public ClientCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress) {
}
public event System.EventHandler LoginCompleted;
public event System.EventHandler ProcessHeartBeatCompleted;
public event System.EventHandler SendJobCompleted;
public event System.EventHandler StoreFinishedJobResultCompleted;
public event System.EventHandler ProcessSnapshotCompleted;
public event System.EventHandler LogoutCompleted;
public event System.EventHandler IsJobStillNeededCompleted;
public event System.EventHandler SendPluginsCompleted;
public HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
return base.Channel.Login(clientInfo);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginLogin(clientInfo, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result) {
return base.Channel.EndLogin(result);
}
private System.IAsyncResult OnBeginLogin(object[] inValues, System.AsyncCallback callback, object asyncState) {
HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo = ((HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo)(inValues[0]));
return this.BeginLogin(clientInfo, callback, asyncState);
}
private object[] OnEndLogin(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.Response retVal = this.EndLogin(result);
return new object[] {
retVal};
}
private void OnLoginCompleted(object state) {
if ((this.LoginCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.LoginCompleted(this, new LoginCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
this.LoginAsync(clientInfo, null);
}
public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, object userState) {
if ((this.onBeginLoginDelegate == null)) {
this.onBeginLoginDelegate = new BeginOperationDelegate(this.OnBeginLogin);
}
if ((this.onEndLoginDelegate == null)) {
this.onEndLoginDelegate = new EndOperationDelegate(this.OnEndLogin);
}
if ((this.onLoginCompletedDelegate == null)) {
this.onLoginCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLoginCompleted);
}
base.InvokeAsync(this.onBeginLoginDelegate, new object[] {
clientInfo}, this.onEndLoginDelegate, this.onLoginCompletedDelegate, userState);
}
public HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
return base.Channel.ProcessHeartBeat(hbData);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginProcessHeartBeat(hbData, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result) {
return base.Channel.EndProcessHeartBeat(result);
}
private System.IAsyncResult OnBeginProcessHeartBeat(object[] inValues, System.AsyncCallback callback, object asyncState) {
HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData = ((HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData)(inValues[0]));
return this.BeginProcessHeartBeat(hbData, callback, asyncState);
}
private object[] OnEndProcessHeartBeat(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.ResponseHB retVal = this.EndProcessHeartBeat(result);
return new object[] {
retVal};
}
private void OnProcessHeartBeatCompleted(object state) {
if ((this.ProcessHeartBeatCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.ProcessHeartBeatCompleted(this, new ProcessHeartBeatCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
this.ProcessHeartBeatAsync(hbData, null);
}
public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, object userState) {
if ((this.onBeginProcessHeartBeatDelegate == null)) {
this.onBeginProcessHeartBeatDelegate = new BeginOperationDelegate(this.OnBeginProcessHeartBeat);
}
if ((this.onEndProcessHeartBeatDelegate == null)) {
this.onEndProcessHeartBeatDelegate = new EndOperationDelegate(this.OnEndProcessHeartBeat);
}
if ((this.onProcessHeartBeatCompletedDelegate == null)) {
this.onProcessHeartBeatCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessHeartBeatCompleted);
}
base.InvokeAsync(this.onBeginProcessHeartBeatDelegate, new object[] {
hbData}, this.onEndProcessHeartBeatDelegate, this.onProcessHeartBeatCompletedDelegate, userState);
}
public HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId) {
return base.Channel.SendJob(clientId);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginSendJob(clientId, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result) {
return base.Channel.EndSendJob(result);
}
private System.IAsyncResult OnBeginSendJob(object[] inValues, System.AsyncCallback callback, object asyncState) {
System.Guid clientId = ((System.Guid)(inValues[0]));
return this.BeginSendJob(clientId, callback, asyncState);
}
private object[] OnEndSendJob(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.ResponseJob retVal = this.EndSendJob(result);
return new object[] {
retVal};
}
private void OnSendJobCompleted(object state) {
if ((this.SendJobCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.SendJobCompleted(this, new SendJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void SendJobAsync(System.Guid clientId) {
this.SendJobAsync(clientId, null);
}
public void SendJobAsync(System.Guid clientId, object userState) {
if ((this.onBeginSendJobDelegate == null)) {
this.onBeginSendJobDelegate = new BeginOperationDelegate(this.OnBeginSendJob);
}
if ((this.onEndSendJobDelegate == null)) {
this.onEndSendJobDelegate = new EndOperationDelegate(this.OnEndSendJob);
}
if ((this.onSendJobCompletedDelegate == null)) {
this.onSendJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobCompleted);
}
base.InvokeAsync(this.onBeginSendJobDelegate, new object[] {
clientId}, this.onEndSendJobDelegate, this.onSendJobCompletedDelegate, userState);
}
public HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
return base.Channel.StoreFinishedJobResult(clientId, jobId, result, percentage, exception);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginStoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginStoreFinishedJobResult(clientId, jobId, result, percentage, exception, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResult(System.IAsyncResult result) {
return base.Channel.EndStoreFinishedJobResult(result);
}
private System.IAsyncResult OnBeginStoreFinishedJobResult(object[] inValues, System.AsyncCallback callback, object asyncState) {
System.Guid clientId = ((System.Guid)(inValues[0]));
System.Guid jobId = ((System.Guid)(inValues[1]));
byte[] result = ((byte[])(inValues[2]));
double percentage = ((double)(inValues[3]));
System.Exception exception = ((System.Exception)(inValues[4]));
return this.BeginStoreFinishedJobResult(clientId, jobId, result, percentage, exception, callback, asyncState);
}
private object[] OnEndStoreFinishedJobResult(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndStoreFinishedJobResult(result);
return new object[] {
retVal};
}
private void OnStoreFinishedJobResultCompleted(object state) {
if ((this.StoreFinishedJobResultCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.StoreFinishedJobResultCompleted(this, new StoreFinishedJobResultCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void StoreFinishedJobResultAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
this.StoreFinishedJobResultAsync(clientId, jobId, result, percentage, exception, null);
}
public void StoreFinishedJobResultAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, object userState) {
if ((this.onBeginStoreFinishedJobResultDelegate == null)) {
this.onBeginStoreFinishedJobResultDelegate = new BeginOperationDelegate(this.OnBeginStoreFinishedJobResult);
}
if ((this.onEndStoreFinishedJobResultDelegate == null)) {
this.onEndStoreFinishedJobResultDelegate = new EndOperationDelegate(this.OnEndStoreFinishedJobResult);
}
if ((this.onStoreFinishedJobResultCompletedDelegate == null)) {
this.onStoreFinishedJobResultCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnStoreFinishedJobResultCompleted);
}
base.InvokeAsync(this.onBeginStoreFinishedJobResultDelegate, new object[] {
clientId,
jobId,
result,
percentage,
exception}, this.onEndStoreFinishedJobResultDelegate, this.onStoreFinishedJobResultCompletedDelegate, userState);
}
public HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
return base.Channel.ProcessSnapshot(clientId, jobId, result, percentage, exception);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginProcessSnapshot(clientId, jobId, result, percentage, exception, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessSnapshot(System.IAsyncResult result) {
return base.Channel.EndProcessSnapshot(result);
}
private System.IAsyncResult OnBeginProcessSnapshot(object[] inValues, System.AsyncCallback callback, object asyncState) {
System.Guid clientId = ((System.Guid)(inValues[0]));
System.Guid jobId = ((System.Guid)(inValues[1]));
byte[] result = ((byte[])(inValues[2]));
double percentage = ((double)(inValues[3]));
System.Exception exception = ((System.Exception)(inValues[4]));
return this.BeginProcessSnapshot(clientId, jobId, result, percentage, exception, callback, asyncState);
}
private object[] OnEndProcessSnapshot(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndProcessSnapshot(result);
return new object[] {
retVal};
}
private void OnProcessSnapshotCompleted(object state) {
if ((this.ProcessSnapshotCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.ProcessSnapshotCompleted(this, new ProcessSnapshotCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void ProcessSnapshotAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
this.ProcessSnapshotAsync(clientId, jobId, result, percentage, exception, null);
}
public void ProcessSnapshotAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, object userState) {
if ((this.onBeginProcessSnapshotDelegate == null)) {
this.onBeginProcessSnapshotDelegate = new BeginOperationDelegate(this.OnBeginProcessSnapshot);
}
if ((this.onEndProcessSnapshotDelegate == null)) {
this.onEndProcessSnapshotDelegate = new EndOperationDelegate(this.OnEndProcessSnapshot);
}
if ((this.onProcessSnapshotCompletedDelegate == null)) {
this.onProcessSnapshotCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessSnapshotCompleted);
}
base.InvokeAsync(this.onBeginProcessSnapshotDelegate, new object[] {
clientId,
jobId,
result,
percentage,
exception}, this.onEndProcessSnapshotDelegate, this.onProcessSnapshotCompletedDelegate, userState);
}
public HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId) {
return base.Channel.Logout(clientId);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginLogout(clientId, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result) {
return base.Channel.EndLogout(result);
}
private System.IAsyncResult OnBeginLogout(object[] inValues, System.AsyncCallback callback, object asyncState) {
System.Guid clientId = ((System.Guid)(inValues[0]));
return this.BeginLogout(clientId, callback, asyncState);
}
private object[] OnEndLogout(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.Response retVal = this.EndLogout(result);
return new object[] {
retVal};
}
private void OnLogoutCompleted(object state) {
if ((this.LogoutCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.LogoutCompleted(this, new LogoutCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void LogoutAsync(System.Guid clientId) {
this.LogoutAsync(clientId, null);
}
public void LogoutAsync(System.Guid clientId, object userState) {
if ((this.onBeginLogoutDelegate == null)) {
this.onBeginLogoutDelegate = new BeginOperationDelegate(this.OnBeginLogout);
}
if ((this.onEndLogoutDelegate == null)) {
this.onEndLogoutDelegate = new EndOperationDelegate(this.OnEndLogout);
}
if ((this.onLogoutCompletedDelegate == null)) {
this.onLogoutCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLogoutCompleted);
}
base.InvokeAsync(this.onBeginLogoutDelegate, new object[] {
clientId}, this.onEndLogoutDelegate, this.onLogoutCompletedDelegate, userState);
}
public HeuristicLab.Hive.Contracts.Response IsJobStillNeeded(System.Guid jobId) {
return base.Channel.IsJobStillNeeded(jobId);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginIsJobStillNeeded(System.Guid jobId, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginIsJobStillNeeded(jobId, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.Response EndIsJobStillNeeded(System.IAsyncResult result) {
return base.Channel.EndIsJobStillNeeded(result);
}
private System.IAsyncResult OnBeginIsJobStillNeeded(object[] inValues, System.AsyncCallback callback, object asyncState) {
System.Guid jobId = ((System.Guid)(inValues[0]));
return this.BeginIsJobStillNeeded(jobId, callback, asyncState);
}
private object[] OnEndIsJobStillNeeded(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.Response retVal = this.EndIsJobStillNeeded(result);
return new object[] {
retVal};
}
private void OnIsJobStillNeededCompleted(object state) {
if ((this.IsJobStillNeededCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.IsJobStillNeededCompleted(this, new IsJobStillNeededCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void IsJobStillNeededAsync(System.Guid jobId) {
this.IsJobStillNeededAsync(jobId, null);
}
public void IsJobStillNeededAsync(System.Guid jobId, object userState) {
if ((this.onBeginIsJobStillNeededDelegate == null)) {
this.onBeginIsJobStillNeededDelegate = new BeginOperationDelegate(this.OnBeginIsJobStillNeeded);
}
if ((this.onEndIsJobStillNeededDelegate == null)) {
this.onEndIsJobStillNeededDelegate = new EndOperationDelegate(this.OnEndIsJobStillNeeded);
}
if ((this.onIsJobStillNeededCompletedDelegate == null)) {
this.onIsJobStillNeededCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnIsJobStillNeededCompleted);
}
base.InvokeAsync(this.onBeginIsJobStillNeededDelegate, new object[] {
jobId}, this.onEndIsJobStillNeededDelegate, this.onIsJobStillNeededCompletedDelegate, userState);
}
public HeuristicLab.Hive.Contracts.ResponsePlugin SendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList) {
return base.Channel.SendPlugins(pluginList);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginSendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginSendPlugins(pluginList, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public HeuristicLab.Hive.Contracts.ResponsePlugin EndSendPlugins(System.IAsyncResult result) {
return base.Channel.EndSendPlugins(result);
}
private System.IAsyncResult OnBeginSendPlugins(object[] inValues, System.AsyncCallback callback, object asyncState) {
HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList = ((HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[])(inValues[0]));
return this.BeginSendPlugins(pluginList, callback, asyncState);
}
private object[] OnEndSendPlugins(System.IAsyncResult result) {
HeuristicLab.Hive.Contracts.ResponsePlugin retVal = this.EndSendPlugins(result);
return new object[] {
retVal};
}
private void OnSendPluginsCompleted(object state) {
if ((this.SendPluginsCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.SendPluginsCompleted(this, new SendPluginsCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void SendPluginsAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList) {
this.SendPluginsAsync(pluginList, null);
}
public void SendPluginsAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList, object userState) {
if ((this.onBeginSendPluginsDelegate == null)) {
this.onBeginSendPluginsDelegate = new BeginOperationDelegate(this.OnBeginSendPlugins);
}
if ((this.onEndSendPluginsDelegate == null)) {
this.onEndSendPluginsDelegate = new EndOperationDelegate(this.OnEndSendPlugins);
}
if ((this.onSendPluginsCompletedDelegate == null)) {
this.onSendPluginsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendPluginsCompleted);
}
base.InvokeAsync(this.onBeginSendPluginsDelegate, new object[] {
pluginList}, this.onEndSendPluginsDelegate, this.onSendPluginsCompletedDelegate, userState);
}
}
}