//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace HeuristicLab.Hive.Slave.Console.SlaveService { using System.Runtime.Serialization; using System; [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name="StatusCommons", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Slave.Core.ClientConsol" + "eService")] [System.SerializableAttribute()] public partial class StatusCommons : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { [System.NonSerializedAttribute()] private System.Runtime.Serialization.ExtensionDataObject extensionDataField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Guid ClientGuidField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.DateTime ConnectedSinceField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int FreeCoresField; [System.Runtime.Serialization.OptionalFieldAttribute()] private HeuristicLab.Hive.Slave.Console.SlaveService.JobStatus[] JobsField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int JobsAbortedField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int JobsDoneField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int JobsFetchedField; [System.Runtime.Serialization.OptionalFieldAttribute()] private HeuristicLab.Hive.Slave.Console.SlaveService.NetworkEnumWcfConnState StatusField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int TotalCoresField; [global::System.ComponentModel.BrowsableAttribute(false)] public System.Runtime.Serialization.ExtensionDataObject ExtensionData { get { return this.extensionDataField; } set { this.extensionDataField = value; } } [System.Runtime.Serialization.DataMemberAttribute()] public System.Guid ClientGuid { get { return this.ClientGuidField; } set { if ((this.ClientGuidField.Equals(value) != true)) { this.ClientGuidField = value; this.RaisePropertyChanged("ClientGuid"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.DateTime ConnectedSince { get { return this.ConnectedSinceField; } set { if ((this.ConnectedSinceField.Equals(value) != true)) { this.ConnectedSinceField = value; this.RaisePropertyChanged("ConnectedSince"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public int FreeCores { get { return this.FreeCoresField; } set { if ((this.FreeCoresField.Equals(value) != true)) { this.FreeCoresField = value; this.RaisePropertyChanged("FreeCores"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public HeuristicLab.Hive.Slave.Console.SlaveService.JobStatus[] Jobs { get { return this.JobsField; } set { if ((object.ReferenceEquals(this.JobsField, value) != true)) { this.JobsField = value; this.RaisePropertyChanged("Jobs"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public int JobsAborted { get { return this.JobsAbortedField; } set { if ((this.JobsAbortedField.Equals(value) != true)) { this.JobsAbortedField = value; this.RaisePropertyChanged("JobsAborted"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public int JobsDone { get { return this.JobsDoneField; } set { if ((this.JobsDoneField.Equals(value) != true)) { this.JobsDoneField = value; this.RaisePropertyChanged("JobsDone"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public int JobsFetched { get { return this.JobsFetchedField; } set { if ((this.JobsFetchedField.Equals(value) != true)) { this.JobsFetchedField = value; this.RaisePropertyChanged("JobsFetched"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public HeuristicLab.Hive.Slave.Console.SlaveService.NetworkEnumWcfConnState Status { get { return this.StatusField; } set { if ((this.StatusField.Equals(value) != true)) { this.StatusField = value; this.RaisePropertyChanged("Status"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public int TotalCores { get { return this.TotalCoresField; } set { if ((this.TotalCoresField.Equals(value) != true)) { this.TotalCoresField = value; this.RaisePropertyChanged("TotalCores"); } } } public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; protected void RaisePropertyChanged(string propertyName) { System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; if ((propertyChanged != null)) { propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); } } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name="JobStatus", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Slave.Core.ClientConsol" + "eService")] [System.SerializableAttribute()] public partial class JobStatus : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { [System.NonSerializedAttribute()] private System.Runtime.Serialization.ExtensionDataObject extensionDataField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Guid JobIdField; [System.Runtime.Serialization.OptionalFieldAttribute()] private double ProgressField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.DateTime SinceField; [global::System.ComponentModel.BrowsableAttribute(false)] public System.Runtime.Serialization.ExtensionDataObject ExtensionData { get { return this.extensionDataField; } set { this.extensionDataField = value; } } [System.Runtime.Serialization.DataMemberAttribute()] public System.Guid JobId { get { return this.JobIdField; } set { if ((this.JobIdField.Equals(value) != true)) { this.JobIdField = value; this.RaisePropertyChanged("JobId"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public double Progress { get { return this.ProgressField; } set { if ((this.ProgressField.Equals(value) != true)) { this.ProgressField = value; this.RaisePropertyChanged("Progress"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.DateTime Since { get { return this.SinceField; } set { if ((this.SinceField.Equals(value) != true)) { this.SinceField = value; this.RaisePropertyChanged("Since"); } } } public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; protected void RaisePropertyChanged(string propertyName) { System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; if ((propertyChanged != null)) { propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); } } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name="NetworkEnum.WcfConnState", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Slave.Common")] public enum NetworkEnumWcfConnState : int { [System.Runtime.Serialization.EnumMemberAttribute()] Connected = 0, [System.Runtime.Serialization.EnumMemberAttribute()] Disconnected = 1, [System.Runtime.Serialization.EnumMemberAttribute()] Failed = 2, [System.Runtime.Serialization.EnumMemberAttribute()] Loggedin = 3, } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name="ConnectionContainer", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Slave.Core.ClientConsol" + "eService")] [System.SerializableAttribute()] public partial class ConnectionContainer : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { [System.NonSerializedAttribute()] private System.Runtime.Serialization.ExtensionDataObject extensionDataField; [System.Runtime.Serialization.OptionalFieldAttribute()] private string IPAdressField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int PortField; [global::System.ComponentModel.BrowsableAttribute(false)] public System.Runtime.Serialization.ExtensionDataObject ExtensionData { get { return this.extensionDataField; } set { this.extensionDataField = value; } } [System.Runtime.Serialization.DataMemberAttribute()] public string IPAdress { get { return this.IPAdressField; } set { if ((object.ReferenceEquals(this.IPAdressField, value) != true)) { this.IPAdressField = value; this.RaisePropertyChanged("IPAdress"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public int Port { get { return this.PortField; } set { if ((this.PortField.Equals(value) != true)) { this.PortField = value; this.RaisePropertyChanged("Port"); } } } public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; protected void RaisePropertyChanged(string propertyName) { System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; if ((propertyChanged != null)) { propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); } } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="SlaveService.ISlaveConsoleCommunicator")] public interface ISlaveConsoleCommunicator { [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/GetStatusInfos", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetStatusInfosResponse")] HeuristicLab.Hive.Slave.Console.SlaveService.StatusCommons GetStatusInfos(); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/GetStatusInfos", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetStatusInfosResponse")] System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState); HeuristicLab.Hive.Slave.Console.SlaveService.StatusCommons EndGetStatusInfos(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/SetConnection", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/SetConnectionResponse")] void SetConnection(HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer container); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/SetConnection", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/SetConnectionResponse")] System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer container, System.AsyncCallback callback, object asyncState); void EndSetConnection(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/DisconnectResponse")] void Disconnect(); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/DisconnectResponse")] System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState); void EndDisconnect(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetCurrentConnectionResponse")] HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer GetCurrentConnection(); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetCurrentConnectionResponse")] System.IAsyncResult BeginGetCurrentConnection(System.AsyncCallback callback, object asyncState); HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/ShutdownClientResponse")] void ShutdownClient(); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/ShutdownClientResponse")] System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState); void EndShutdownClient(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendarResponse")] void SetUptimeCalendar(HeuristicLab.Calendar.Appointment[] appointments); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendarResponse")] System.IAsyncResult BeginSetUptimeCalendar(HeuristicLab.Calendar.Appointment[] appointments, System.AsyncCallback callback, object asyncState); void EndSetUptimeCalendar(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendarResponse")] HeuristicLab.Calendar.Appointment[] GetUptimeCalendar(); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendarResponse")] System.IAsyncResult BeginGetUptimeCalendar(System.AsyncCallback callback, object asyncState); HeuristicLab.Calendar.Appointment[] EndGetUptimeCalendar(System.IAsyncResult result); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public interface ISlaveConsoleCommunicatorChannel : HeuristicLab.Hive.Slave.Console.SlaveService.ISlaveConsoleCommunicator, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class GetStatusInfosCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; public GetStatusInfosCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public HeuristicLab.Hive.Slave.Console.SlaveService.StatusCommons Result { get { base.RaiseExceptionIfNecessary(); return ((HeuristicLab.Hive.Slave.Console.SlaveService.StatusCommons)(this.results[0])); } } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class GetCurrentConnectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; public GetCurrentConnectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer Result { get { base.RaiseExceptionIfNecessary(); return ((HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer)(this.results[0])); } } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class GetUptimeCalendarCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; public GetUptimeCalendarCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public HeuristicLab.Calendar.Appointment[] Result { get { base.RaiseExceptionIfNecessary(); return ((HeuristicLab.Calendar.Appointment[])(this.results[0])); } } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class SlaveConsoleCommunicatorClient : System.ServiceModel.ClientBase, HeuristicLab.Hive.Slave.Console.SlaveService.ISlaveConsoleCommunicator { private BeginOperationDelegate onBeginGetStatusInfosDelegate; private EndOperationDelegate onEndGetStatusInfosDelegate; private System.Threading.SendOrPostCallback onGetStatusInfosCompletedDelegate; private BeginOperationDelegate onBeginSetConnectionDelegate; private EndOperationDelegate onEndSetConnectionDelegate; private System.Threading.SendOrPostCallback onSetConnectionCompletedDelegate; private BeginOperationDelegate onBeginDisconnectDelegate; private EndOperationDelegate onEndDisconnectDelegate; private System.Threading.SendOrPostCallback onDisconnectCompletedDelegate; private BeginOperationDelegate onBeginGetCurrentConnectionDelegate; private EndOperationDelegate onEndGetCurrentConnectionDelegate; private System.Threading.SendOrPostCallback onGetCurrentConnectionCompletedDelegate; private BeginOperationDelegate onBeginShutdownClientDelegate; private EndOperationDelegate onEndShutdownClientDelegate; private System.Threading.SendOrPostCallback onShutdownClientCompletedDelegate; private BeginOperationDelegate onBeginSetUptimeCalendarDelegate; private EndOperationDelegate onEndSetUptimeCalendarDelegate; private System.Threading.SendOrPostCallback onSetUptimeCalendarCompletedDelegate; private BeginOperationDelegate onBeginGetUptimeCalendarDelegate; private EndOperationDelegate onEndGetUptimeCalendarDelegate; private System.Threading.SendOrPostCallback onGetUptimeCalendarCompletedDelegate; public SlaveConsoleCommunicatorClient() { } public SlaveConsoleCommunicatorClient(string endpointConfigurationName) : base(endpointConfigurationName) { } public SlaveConsoleCommunicatorClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public SlaveConsoleCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public SlaveConsoleCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public event System.EventHandler GetStatusInfosCompleted; public event System.EventHandler SetConnectionCompleted; public event System.EventHandler DisconnectCompleted; public event System.EventHandler GetCurrentConnectionCompleted; public event System.EventHandler ShutdownClientCompleted; public event System.EventHandler SetUptimeCalendarCompleted; public event System.EventHandler GetUptimeCalendarCompleted; public HeuristicLab.Hive.Slave.Console.SlaveService.StatusCommons GetStatusInfos() { return base.Channel.GetStatusInfos(); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState) { return base.Channel.BeginGetStatusInfos(callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public HeuristicLab.Hive.Slave.Console.SlaveService.StatusCommons EndGetStatusInfos(System.IAsyncResult result) { return base.Channel.EndGetStatusInfos(result); } private System.IAsyncResult OnBeginGetStatusInfos(object[] inValues, System.AsyncCallback callback, object asyncState) { return this.BeginGetStatusInfos(callback, asyncState); } private object[] OnEndGetStatusInfos(System.IAsyncResult result) { HeuristicLab.Hive.Slave.Console.SlaveService.StatusCommons retVal = this.EndGetStatusInfos(result); return new object[] { retVal}; } private void OnGetStatusInfosCompleted(object state) { if ((this.GetStatusInfosCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.GetStatusInfosCompleted(this, new GetStatusInfosCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); } } public void GetStatusInfosAsync() { this.GetStatusInfosAsync(null); } public void GetStatusInfosAsync(object userState) { if ((this.onBeginGetStatusInfosDelegate == null)) { this.onBeginGetStatusInfosDelegate = new BeginOperationDelegate(this.OnBeginGetStatusInfos); } if ((this.onEndGetStatusInfosDelegate == null)) { this.onEndGetStatusInfosDelegate = new EndOperationDelegate(this.OnEndGetStatusInfos); } if ((this.onGetStatusInfosCompletedDelegate == null)) { this.onGetStatusInfosCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusInfosCompleted); } base.InvokeAsync(this.onBeginGetStatusInfosDelegate, null, this.onEndGetStatusInfosDelegate, this.onGetStatusInfosCompletedDelegate, userState); } public void SetConnection(HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer container) { base.Channel.SetConnection(container); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer container, System.AsyncCallback callback, object asyncState) { return base.Channel.BeginSetConnection(container, callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public void EndSetConnection(System.IAsyncResult result) { base.Channel.EndSetConnection(result); } private System.IAsyncResult OnBeginSetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) { HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer container = ((HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer)(inValues[0])); return this.BeginSetConnection(container, callback, asyncState); } private object[] OnEndSetConnection(System.IAsyncResult result) { this.EndSetConnection(result); return null; } private void OnSetConnectionCompleted(object state) { if ((this.SetConnectionCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.SetConnectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); } } public void SetConnectionAsync(HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer container) { this.SetConnectionAsync(container, null); } public void SetConnectionAsync(HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer container, object userState) { if ((this.onBeginSetConnectionDelegate == null)) { this.onBeginSetConnectionDelegate = new BeginOperationDelegate(this.OnBeginSetConnection); } if ((this.onEndSetConnectionDelegate == null)) { this.onEndSetConnectionDelegate = new EndOperationDelegate(this.OnEndSetConnection); } if ((this.onSetConnectionCompletedDelegate == null)) { this.onSetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetConnectionCompleted); } base.InvokeAsync(this.onBeginSetConnectionDelegate, new object[] { container}, this.onEndSetConnectionDelegate, this.onSetConnectionCompletedDelegate, userState); } public void Disconnect() { base.Channel.Disconnect(); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState) { return base.Channel.BeginDisconnect(callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public void EndDisconnect(System.IAsyncResult result) { base.Channel.EndDisconnect(result); } private System.IAsyncResult OnBeginDisconnect(object[] inValues, System.AsyncCallback callback, object asyncState) { return this.BeginDisconnect(callback, asyncState); } private object[] OnEndDisconnect(System.IAsyncResult result) { this.EndDisconnect(result); return null; } private void OnDisconnectCompleted(object state) { if ((this.DisconnectCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.DisconnectCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); } } public void DisconnectAsync() { this.DisconnectAsync(null); } public void DisconnectAsync(object userState) { if ((this.onBeginDisconnectDelegate == null)) { this.onBeginDisconnectDelegate = new BeginOperationDelegate(this.OnBeginDisconnect); } if ((this.onEndDisconnectDelegate == null)) { this.onEndDisconnectDelegate = new EndOperationDelegate(this.OnEndDisconnect); } if ((this.onDisconnectCompletedDelegate == null)) { this.onDisconnectCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDisconnectCompleted); } base.InvokeAsync(this.onBeginDisconnectDelegate, null, this.onEndDisconnectDelegate, this.onDisconnectCompletedDelegate, userState); } public HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer GetCurrentConnection() { return base.Channel.GetCurrentConnection(); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public System.IAsyncResult BeginGetCurrentConnection(System.AsyncCallback callback, object asyncState) { return base.Channel.BeginGetCurrentConnection(callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result) { return base.Channel.EndGetCurrentConnection(result); } private System.IAsyncResult OnBeginGetCurrentConnection(object[] inValues, System.AsyncCallback callback, object asyncState) { return this.BeginGetCurrentConnection(callback, asyncState); } private object[] OnEndGetCurrentConnection(System.IAsyncResult result) { HeuristicLab.Hive.Slave.Console.SlaveService.ConnectionContainer retVal = this.EndGetCurrentConnection(result); return new object[] { retVal}; } private void OnGetCurrentConnectionCompleted(object state) { if ((this.GetCurrentConnectionCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.GetCurrentConnectionCompleted(this, new GetCurrentConnectionCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); } } public void GetCurrentConnectionAsync() { this.GetCurrentConnectionAsync(null); } public void GetCurrentConnectionAsync(object userState) { if ((this.onBeginGetCurrentConnectionDelegate == null)) { this.onBeginGetCurrentConnectionDelegate = new BeginOperationDelegate(this.OnBeginGetCurrentConnection); } if ((this.onEndGetCurrentConnectionDelegate == null)) { this.onEndGetCurrentConnectionDelegate = new EndOperationDelegate(this.OnEndGetCurrentConnection); } if ((this.onGetCurrentConnectionCompletedDelegate == null)) { this.onGetCurrentConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetCurrentConnectionCompleted); } base.InvokeAsync(this.onBeginGetCurrentConnectionDelegate, null, this.onEndGetCurrentConnectionDelegate, this.onGetCurrentConnectionCompletedDelegate, userState); } public void ShutdownClient() { base.Channel.ShutdownClient(); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState) { return base.Channel.BeginShutdownClient(callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public void EndShutdownClient(System.IAsyncResult result) { base.Channel.EndShutdownClient(result); } private System.IAsyncResult OnBeginShutdownClient(object[] inValues, System.AsyncCallback callback, object asyncState) { return this.BeginShutdownClient(callback, asyncState); } private object[] OnEndShutdownClient(System.IAsyncResult result) { this.EndShutdownClient(result); return null; } private void OnShutdownClientCompleted(object state) { if ((this.ShutdownClientCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.ShutdownClientCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); } } public void ShutdownClientAsync() { this.ShutdownClientAsync(null); } public void ShutdownClientAsync(object userState) { if ((this.onBeginShutdownClientDelegate == null)) { this.onBeginShutdownClientDelegate = new BeginOperationDelegate(this.OnBeginShutdownClient); } if ((this.onEndShutdownClientDelegate == null)) { this.onEndShutdownClientDelegate = new EndOperationDelegate(this.OnEndShutdownClient); } if ((this.onShutdownClientCompletedDelegate == null)) { this.onShutdownClientCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnShutdownClientCompleted); } base.InvokeAsync(this.onBeginShutdownClientDelegate, null, this.onEndShutdownClientDelegate, this.onShutdownClientCompletedDelegate, userState); } public void SetUptimeCalendar(HeuristicLab.Calendar.Appointment[] appointments) { base.Channel.SetUptimeCalendar(appointments); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public System.IAsyncResult BeginSetUptimeCalendar(HeuristicLab.Calendar.Appointment[] appointments, System.AsyncCallback callback, object asyncState) { return base.Channel.BeginSetUptimeCalendar(appointments, callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public void EndSetUptimeCalendar(System.IAsyncResult result) { base.Channel.EndSetUptimeCalendar(result); } private System.IAsyncResult OnBeginSetUptimeCalendar(object[] inValues, System.AsyncCallback callback, object asyncState) { HeuristicLab.Calendar.Appointment[] appointments = ((HeuristicLab.Calendar.Appointment[])(inValues[0])); return this.BeginSetUptimeCalendar(appointments, callback, asyncState); } private object[] OnEndSetUptimeCalendar(System.IAsyncResult result) { this.EndSetUptimeCalendar(result); return null; } private void OnSetUptimeCalendarCompleted(object state) { if ((this.SetUptimeCalendarCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.SetUptimeCalendarCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); } } public void SetUptimeCalendarAsync(HeuristicLab.Calendar.Appointment[] appointments) { this.SetUptimeCalendarAsync(appointments, null); } public void SetUptimeCalendarAsync(HeuristicLab.Calendar.Appointment[] appointments, object userState) { if ((this.onBeginSetUptimeCalendarDelegate == null)) { this.onBeginSetUptimeCalendarDelegate = new BeginOperationDelegate(this.OnBeginSetUptimeCalendar); } if ((this.onEndSetUptimeCalendarDelegate == null)) { this.onEndSetUptimeCalendarDelegate = new EndOperationDelegate(this.OnEndSetUptimeCalendar); } if ((this.onSetUptimeCalendarCompletedDelegate == null)) { this.onSetUptimeCalendarCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetUptimeCalendarCompleted); } base.InvokeAsync(this.onBeginSetUptimeCalendarDelegate, new object[] { appointments}, this.onEndSetUptimeCalendarDelegate, this.onSetUptimeCalendarCompletedDelegate, userState); } public HeuristicLab.Calendar.Appointment[] GetUptimeCalendar() { return base.Channel.GetUptimeCalendar(); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public System.IAsyncResult BeginGetUptimeCalendar(System.AsyncCallback callback, object asyncState) { return base.Channel.BeginGetUptimeCalendar(callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] public HeuristicLab.Calendar.Appointment[] EndGetUptimeCalendar(System.IAsyncResult result) { return base.Channel.EndGetUptimeCalendar(result); } private System.IAsyncResult OnBeginGetUptimeCalendar(object[] inValues, System.AsyncCallback callback, object asyncState) { return this.BeginGetUptimeCalendar(callback, asyncState); } private object[] OnEndGetUptimeCalendar(System.IAsyncResult result) { HeuristicLab.Calendar.Appointment[] retVal = this.EndGetUptimeCalendar(result); return new object[] { retVal}; } private void OnGetUptimeCalendarCompleted(object state) { if ((this.GetUptimeCalendarCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.GetUptimeCalendarCompleted(this, new GetUptimeCalendarCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); } } public void GetUptimeCalendarAsync() { this.GetUptimeCalendarAsync(null); } public void GetUptimeCalendarAsync(object userState) { if ((this.onBeginGetUptimeCalendarDelegate == null)) { this.onBeginGetUptimeCalendarDelegate = new BeginOperationDelegate(this.OnBeginGetUptimeCalendar); } if ((this.onEndGetUptimeCalendarDelegate == null)) { this.onEndGetUptimeCalendarDelegate = new EndOperationDelegate(this.OnEndGetUptimeCalendar); } if ((this.onGetUptimeCalendarCompletedDelegate == null)) { this.onGetUptimeCalendarCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetUptimeCalendarCompleted); } base.InvokeAsync(this.onBeginGetUptimeCalendarDelegate, null, this.onEndGetUptimeCalendarDelegate, this.onGetUptimeCalendarCompletedDelegate, userState); } } }