[993] | 1 | //------------------------------------------------------------------------------
|
---|
| 2 | // <auto-generated>
|
---|
| 3 | // This code was generated by a tool.
|
---|
[1594] | 4 | // Runtime Version:2.0.50727.3053
|
---|
[993] | 5 | //
|
---|
| 6 | // Changes to this file may cause incorrect behavior and will be lost if
|
---|
| 7 | // the code is regenerated.
|
---|
| 8 | // </auto-generated>
|
---|
| 9 | //------------------------------------------------------------------------------
|
---|
| 10 |
|
---|
| 11 | namespace HeuristicLab.Hive.Client.Communication.ServerService {
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
| 15 | [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServerService.IClientCommunicator")]
|
---|
| 16 | public interface IClientCommunicator {
|
---|
| 17 |
|
---|
| 18 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]
|
---|
| 19 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
|
---|
| 20 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
|
---|
| 21 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
|
---|
[1379] | 22 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
|
---|
[993] | 23 | HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo);
|
---|
| 24 |
|
---|
| 25 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]
|
---|
| 26 | System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState);
|
---|
| 27 |
|
---|
| 28 | HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result);
|
---|
| 29 |
|
---|
[1366] | 30 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
|
---|
| 31 | HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData);
|
---|
[993] | 32 |
|
---|
[1366] | 33 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]
|
---|
| 34 | System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState);
|
---|
[993] | 35 |
|
---|
[1366] | 36 | HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result);
|
---|
[993] | 37 |
|
---|
[1366] | 38 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
|
---|
| 39 | HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId);
|
---|
[993] | 40 |
|
---|
[1366] | 41 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]
|
---|
| 42 | System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState);
|
---|
[993] | 43 |
|
---|
[1366] | 44 | HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result);
|
---|
[993] | 45 |
|
---|
[1379] | 46 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]
|
---|
[1449] | 47 | HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception);
|
---|
[993] | 48 |
|
---|
[1379] | 49 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]
|
---|
[1449] | 50 | System.IAsyncResult BeginStoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState);
|
---|
[993] | 51 |
|
---|
[1379] | 52 | HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResult(System.IAsyncResult result);
|
---|
[993] | 53 |
|
---|
[1379] | 54 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]
|
---|
[1449] | 55 | HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception);
|
---|
[1379] | 56 |
|
---|
| 57 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]
|
---|
[1449] | 58 | System.IAsyncResult BeginProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState);
|
---|
[1379] | 59 |
|
---|
| 60 | HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessSnapshot(System.IAsyncResult result);
|
---|
| 61 |
|
---|
[993] | 62 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
|
---|
| 63 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
|
---|
| 64 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
|
---|
| 65 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
|
---|
[1379] | 66 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
|
---|
[993] | 67 | HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId);
|
---|
| 68 |
|
---|
| 69 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]
|
---|
| 70 | System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState);
|
---|
| 71 |
|
---|
| 72 | HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result);
|
---|
[1379] | 73 |
|
---|
| 74 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]
|
---|
| 75 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))]
|
---|
| 76 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))]
|
---|
| 77 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))]
|
---|
| 78 | [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))]
|
---|
[1449] | 79 | HeuristicLab.Hive.Contracts.Response IsJobStillNeeded(System.Guid jobId);
|
---|
[1379] | 80 |
|
---|
| 81 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]
|
---|
[1449] | 82 | System.IAsyncResult BeginIsJobStillNeeded(System.Guid jobId, System.AsyncCallback callback, object asyncState);
|
---|
[1379] | 83 |
|
---|
| 84 | HeuristicLab.Hive.Contracts.Response EndIsJobStillNeeded(System.IAsyncResult result);
|
---|
| 85 |
|
---|
| 86 | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]
|
---|
[1594] | 87 | HeuristicLab.Hive.Contracts.ResponsePlugin SendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList);
|
---|
[1379] | 88 |
|
---|
| 89 | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]
|
---|
[1594] | 90 | System.IAsyncResult BeginSendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList, System.AsyncCallback callback, object asyncState);
|
---|
[1379] | 91 |
|
---|
| 92 | HeuristicLab.Hive.Contracts.ResponsePlugin EndSendPlugins(System.IAsyncResult result);
|
---|
[993] | 93 | }
|
---|
| 94 |
|
---|
| 95 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
| 96 | public interface IClientCommunicatorChannel : HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator, System.ServiceModel.IClientChannel {
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 100 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
| 101 | public partial class LoginCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
| 102 |
|
---|
| 103 | private object[] results;
|
---|
| 104 |
|
---|
| 105 | public LoginCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
| 106 | base(exception, cancelled, userState) {
|
---|
| 107 | this.results = results;
|
---|
| 108 | }
|
---|
| 109 |
|
---|
| 110 | public HeuristicLab.Hive.Contracts.Response Result {
|
---|
| 111 | get {
|
---|
| 112 | base.RaiseExceptionIfNecessary();
|
---|
| 113 | return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
|
---|
| 114 | }
|
---|
| 115 | }
|
---|
| 116 | }
|
---|
| 117 |
|
---|
| 118 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 119 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
[1366] | 120 | public partial class ProcessHeartBeatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
[993] | 121 |
|
---|
| 122 | private object[] results;
|
---|
| 123 |
|
---|
[1366] | 124 | public ProcessHeartBeatCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
[993] | 125 | base(exception, cancelled, userState) {
|
---|
| 126 | this.results = results;
|
---|
| 127 | }
|
---|
| 128 |
|
---|
| 129 | public HeuristicLab.Hive.Contracts.ResponseHB Result {
|
---|
| 130 | get {
|
---|
| 131 | base.RaiseExceptionIfNecessary();
|
---|
| 132 | return ((HeuristicLab.Hive.Contracts.ResponseHB)(this.results[0]));
|
---|
| 133 | }
|
---|
| 134 | }
|
---|
| 135 | }
|
---|
| 136 |
|
---|
| 137 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 138 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
[1366] | 139 | public partial class SendJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
[993] | 140 |
|
---|
| 141 | private object[] results;
|
---|
| 142 |
|
---|
[1366] | 143 | public SendJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
[993] | 144 | base(exception, cancelled, userState) {
|
---|
| 145 | this.results = results;
|
---|
| 146 | }
|
---|
| 147 |
|
---|
| 148 | public HeuristicLab.Hive.Contracts.ResponseJob Result {
|
---|
| 149 | get {
|
---|
| 150 | base.RaiseExceptionIfNecessary();
|
---|
| 151 | return ((HeuristicLab.Hive.Contracts.ResponseJob)(this.results[0]));
|
---|
| 152 | }
|
---|
| 153 | }
|
---|
| 154 | }
|
---|
| 155 |
|
---|
| 156 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 157 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
[1379] | 158 | public partial class StoreFinishedJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
[993] | 159 |
|
---|
| 160 | private object[] results;
|
---|
| 161 |
|
---|
[1379] | 162 | public StoreFinishedJobResultCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
[993] | 163 | base(exception, cancelled, userState) {
|
---|
| 164 | this.results = results;
|
---|
| 165 | }
|
---|
| 166 |
|
---|
| 167 | public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
|
---|
| 168 | get {
|
---|
| 169 | base.RaiseExceptionIfNecessary();
|
---|
| 170 | return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
|
---|
| 171 | }
|
---|
| 172 | }
|
---|
| 173 | }
|
---|
| 174 |
|
---|
| 175 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 176 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
[1379] | 177 | public partial class ProcessSnapshotCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
| 178 |
|
---|
| 179 | private object[] results;
|
---|
| 180 |
|
---|
| 181 | public ProcessSnapshotCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
| 182 | base(exception, cancelled, userState) {
|
---|
| 183 | this.results = results;
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 | public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
|
---|
| 187 | get {
|
---|
| 188 | base.RaiseExceptionIfNecessary();
|
---|
| 189 | return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
|
---|
| 190 | }
|
---|
| 191 | }
|
---|
| 192 | }
|
---|
| 193 |
|
---|
| 194 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 195 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
[993] | 196 | public partial class LogoutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
| 197 |
|
---|
| 198 | private object[] results;
|
---|
| 199 |
|
---|
| 200 | public LogoutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
| 201 | base(exception, cancelled, userState) {
|
---|
| 202 | this.results = results;
|
---|
| 203 | }
|
---|
| 204 |
|
---|
| 205 | public HeuristicLab.Hive.Contracts.Response Result {
|
---|
| 206 | get {
|
---|
| 207 | base.RaiseExceptionIfNecessary();
|
---|
| 208 | return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
|
---|
| 209 | }
|
---|
| 210 | }
|
---|
| 211 | }
|
---|
| 212 |
|
---|
| 213 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 214 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
[1379] | 215 | public partial class IsJobStillNeededCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
| 216 |
|
---|
| 217 | private object[] results;
|
---|
| 218 |
|
---|
| 219 | public IsJobStillNeededCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
| 220 | base(exception, cancelled, userState) {
|
---|
| 221 | this.results = results;
|
---|
| 222 | }
|
---|
| 223 |
|
---|
| 224 | public HeuristicLab.Hive.Contracts.Response Result {
|
---|
| 225 | get {
|
---|
| 226 | base.RaiseExceptionIfNecessary();
|
---|
| 227 | return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
|
---|
| 228 | }
|
---|
| 229 | }
|
---|
| 230 | }
|
---|
| 231 |
|
---|
| 232 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 233 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
| 234 | public partial class SendPluginsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
---|
| 235 |
|
---|
| 236 | private object[] results;
|
---|
| 237 |
|
---|
| 238 | public SendPluginsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
---|
| 239 | base(exception, cancelled, userState) {
|
---|
| 240 | this.results = results;
|
---|
| 241 | }
|
---|
| 242 |
|
---|
| 243 | public HeuristicLab.Hive.Contracts.ResponsePlugin Result {
|
---|
| 244 | get {
|
---|
| 245 | base.RaiseExceptionIfNecessary();
|
---|
| 246 | return ((HeuristicLab.Hive.Contracts.ResponsePlugin)(this.results[0]));
|
---|
| 247 | }
|
---|
| 248 | }
|
---|
| 249 | }
|
---|
| 250 |
|
---|
| 251 | [System.Diagnostics.DebuggerStepThroughAttribute()]
|
---|
| 252 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
---|
[993] | 253 | public partial class ClientCommunicatorClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator>, HeuristicLab.Hive.Client.Communication.ServerService.IClientCommunicator {
|
---|
| 254 |
|
---|
| 255 | private BeginOperationDelegate onBeginLoginDelegate;
|
---|
| 256 |
|
---|
| 257 | private EndOperationDelegate onEndLoginDelegate;
|
---|
| 258 |
|
---|
| 259 | private System.Threading.SendOrPostCallback onLoginCompletedDelegate;
|
---|
| 260 |
|
---|
[1366] | 261 | private BeginOperationDelegate onBeginProcessHeartBeatDelegate;
|
---|
[993] | 262 |
|
---|
[1366] | 263 | private EndOperationDelegate onEndProcessHeartBeatDelegate;
|
---|
[993] | 264 |
|
---|
[1366] | 265 | private System.Threading.SendOrPostCallback onProcessHeartBeatCompletedDelegate;
|
---|
[993] | 266 |
|
---|
[1366] | 267 | private BeginOperationDelegate onBeginSendJobDelegate;
|
---|
[993] | 268 |
|
---|
[1366] | 269 | private EndOperationDelegate onEndSendJobDelegate;
|
---|
[993] | 270 |
|
---|
[1366] | 271 | private System.Threading.SendOrPostCallback onSendJobCompletedDelegate;
|
---|
[993] | 272 |
|
---|
[1379] | 273 | private BeginOperationDelegate onBeginStoreFinishedJobResultDelegate;
|
---|
[993] | 274 |
|
---|
[1379] | 275 | private EndOperationDelegate onEndStoreFinishedJobResultDelegate;
|
---|
[993] | 276 |
|
---|
[1379] | 277 | private System.Threading.SendOrPostCallback onStoreFinishedJobResultCompletedDelegate;
|
---|
[993] | 278 |
|
---|
[1379] | 279 | private BeginOperationDelegate onBeginProcessSnapshotDelegate;
|
---|
| 280 |
|
---|
| 281 | private EndOperationDelegate onEndProcessSnapshotDelegate;
|
---|
| 282 |
|
---|
| 283 | private System.Threading.SendOrPostCallback onProcessSnapshotCompletedDelegate;
|
---|
| 284 |
|
---|
[993] | 285 | private BeginOperationDelegate onBeginLogoutDelegate;
|
---|
| 286 |
|
---|
| 287 | private EndOperationDelegate onEndLogoutDelegate;
|
---|
| 288 |
|
---|
| 289 | private System.Threading.SendOrPostCallback onLogoutCompletedDelegate;
|
---|
| 290 |
|
---|
[1379] | 291 | private BeginOperationDelegate onBeginIsJobStillNeededDelegate;
|
---|
| 292 |
|
---|
| 293 | private EndOperationDelegate onEndIsJobStillNeededDelegate;
|
---|
| 294 |
|
---|
| 295 | private System.Threading.SendOrPostCallback onIsJobStillNeededCompletedDelegate;
|
---|
| 296 |
|
---|
| 297 | private BeginOperationDelegate onBeginSendPluginsDelegate;
|
---|
| 298 |
|
---|
| 299 | private EndOperationDelegate onEndSendPluginsDelegate;
|
---|
| 300 |
|
---|
| 301 | private System.Threading.SendOrPostCallback onSendPluginsCompletedDelegate;
|
---|
| 302 |
|
---|
[993] | 303 | public ClientCommunicatorClient() {
|
---|
| 304 | }
|
---|
| 305 |
|
---|
| 306 | public ClientCommunicatorClient(string endpointConfigurationName) :
|
---|
| 307 | base(endpointConfigurationName) {
|
---|
| 308 | }
|
---|
| 309 |
|
---|
| 310 | public ClientCommunicatorClient(string endpointConfigurationName, string remoteAddress) :
|
---|
| 311 | base(endpointConfigurationName, remoteAddress) {
|
---|
| 312 | }
|
---|
| 313 |
|
---|
| 314 | public ClientCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
---|
| 315 | base(endpointConfigurationName, remoteAddress) {
|
---|
| 316 | }
|
---|
| 317 |
|
---|
| 318 | public ClientCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
---|
| 319 | base(binding, remoteAddress) {
|
---|
| 320 | }
|
---|
| 321 |
|
---|
| 322 | public event System.EventHandler<LoginCompletedEventArgs> LoginCompleted;
|
---|
| 323 |
|
---|
[1366] | 324 | public event System.EventHandler<ProcessHeartBeatCompletedEventArgs> ProcessHeartBeatCompleted;
|
---|
[993] | 325 |
|
---|
[1366] | 326 | public event System.EventHandler<SendJobCompletedEventArgs> SendJobCompleted;
|
---|
[993] | 327 |
|
---|
[1379] | 328 | public event System.EventHandler<StoreFinishedJobResultCompletedEventArgs> StoreFinishedJobResultCompleted;
|
---|
[993] | 329 |
|
---|
[1379] | 330 | public event System.EventHandler<ProcessSnapshotCompletedEventArgs> ProcessSnapshotCompleted;
|
---|
| 331 |
|
---|
[993] | 332 | public event System.EventHandler<LogoutCompletedEventArgs> LogoutCompleted;
|
---|
| 333 |
|
---|
[1379] | 334 | public event System.EventHandler<IsJobStillNeededCompletedEventArgs> IsJobStillNeededCompleted;
|
---|
| 335 |
|
---|
| 336 | public event System.EventHandler<SendPluginsCompletedEventArgs> SendPluginsCompleted;
|
---|
| 337 |
|
---|
[993] | 338 | public HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
|
---|
| 339 | return base.Channel.Login(clientInfo);
|
---|
| 340 | }
|
---|
| 341 |
|
---|
| 342 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
| 343 | public System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState) {
|
---|
| 344 | return base.Channel.BeginLogin(clientInfo, callback, asyncState);
|
---|
| 345 | }
|
---|
| 346 |
|
---|
| 347 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
| 348 | public HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result) {
|
---|
| 349 | return base.Channel.EndLogin(result);
|
---|
| 350 | }
|
---|
| 351 |
|
---|
| 352 | private System.IAsyncResult OnBeginLogin(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
| 353 | HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo = ((HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo)(inValues[0]));
|
---|
| 354 | return this.BeginLogin(clientInfo, callback, asyncState);
|
---|
| 355 | }
|
---|
| 356 |
|
---|
| 357 | private object[] OnEndLogin(System.IAsyncResult result) {
|
---|
| 358 | HeuristicLab.Hive.Contracts.Response retVal = this.EndLogin(result);
|
---|
| 359 | return new object[] {
|
---|
| 360 | retVal};
|
---|
| 361 | }
|
---|
| 362 |
|
---|
| 363 | private void OnLoginCompleted(object state) {
|
---|
| 364 | if ((this.LoginCompleted != null)) {
|
---|
| 365 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
| 366 | this.LoginCompleted(this, new LoginCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
| 367 | }
|
---|
| 368 | }
|
---|
| 369 |
|
---|
| 370 | public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) {
|
---|
| 371 | this.LoginAsync(clientInfo, null);
|
---|
| 372 | }
|
---|
| 373 |
|
---|
| 374 | public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, object userState) {
|
---|
| 375 | if ((this.onBeginLoginDelegate == null)) {
|
---|
| 376 | this.onBeginLoginDelegate = new BeginOperationDelegate(this.OnBeginLogin);
|
---|
| 377 | }
|
---|
| 378 | if ((this.onEndLoginDelegate == null)) {
|
---|
| 379 | this.onEndLoginDelegate = new EndOperationDelegate(this.OnEndLogin);
|
---|
| 380 | }
|
---|
| 381 | if ((this.onLoginCompletedDelegate == null)) {
|
---|
| 382 | this.onLoginCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLoginCompleted);
|
---|
| 383 | }
|
---|
| 384 | base.InvokeAsync(this.onBeginLoginDelegate, new object[] {
|
---|
| 385 | clientInfo}, this.onEndLoginDelegate, this.onLoginCompletedDelegate, userState);
|
---|
| 386 | }
|
---|
| 387 |
|
---|
[1366] | 388 | public HeuristicLab.Hive.Contracts.ResponseHB ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
|
---|
| 389 | return base.Channel.ProcessHeartBeat(hbData);
|
---|
[993] | 390 | }
|
---|
| 391 |
|
---|
| 392 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1366] | 393 | public System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState) {
|
---|
| 394 | return base.Channel.BeginProcessHeartBeat(hbData, callback, asyncState);
|
---|
[993] | 395 | }
|
---|
| 396 |
|
---|
| 397 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1366] | 398 | public HeuristicLab.Hive.Contracts.ResponseHB EndProcessHeartBeat(System.IAsyncResult result) {
|
---|
| 399 | return base.Channel.EndProcessHeartBeat(result);
|
---|
[993] | 400 | }
|
---|
| 401 |
|
---|
[1366] | 402 | private System.IAsyncResult OnBeginProcessHeartBeat(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
[993] | 403 | HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData = ((HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData)(inValues[0]));
|
---|
[1366] | 404 | return this.BeginProcessHeartBeat(hbData, callback, asyncState);
|
---|
[993] | 405 | }
|
---|
| 406 |
|
---|
[1366] | 407 | private object[] OnEndProcessHeartBeat(System.IAsyncResult result) {
|
---|
| 408 | HeuristicLab.Hive.Contracts.ResponseHB retVal = this.EndProcessHeartBeat(result);
|
---|
[993] | 409 | return new object[] {
|
---|
| 410 | retVal};
|
---|
| 411 | }
|
---|
| 412 |
|
---|
[1366] | 413 | private void OnProcessHeartBeatCompleted(object state) {
|
---|
| 414 | if ((this.ProcessHeartBeatCompleted != null)) {
|
---|
[993] | 415 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
[1366] | 416 | this.ProcessHeartBeatCompleted(this, new ProcessHeartBeatCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
[993] | 417 | }
|
---|
| 418 | }
|
---|
| 419 |
|
---|
[1366] | 420 | public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
|
---|
| 421 | this.ProcessHeartBeatAsync(hbData, null);
|
---|
[993] | 422 | }
|
---|
| 423 |
|
---|
[1366] | 424 | public void ProcessHeartBeatAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, object userState) {
|
---|
| 425 | if ((this.onBeginProcessHeartBeatDelegate == null)) {
|
---|
| 426 | this.onBeginProcessHeartBeatDelegate = new BeginOperationDelegate(this.OnBeginProcessHeartBeat);
|
---|
[993] | 427 | }
|
---|
[1366] | 428 | if ((this.onEndProcessHeartBeatDelegate == null)) {
|
---|
| 429 | this.onEndProcessHeartBeatDelegate = new EndOperationDelegate(this.OnEndProcessHeartBeat);
|
---|
[993] | 430 | }
|
---|
[1366] | 431 | if ((this.onProcessHeartBeatCompletedDelegate == null)) {
|
---|
| 432 | this.onProcessHeartBeatCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessHeartBeatCompleted);
|
---|
[993] | 433 | }
|
---|
[1366] | 434 | base.InvokeAsync(this.onBeginProcessHeartBeatDelegate, new object[] {
|
---|
| 435 | hbData}, this.onEndProcessHeartBeatDelegate, this.onProcessHeartBeatCompletedDelegate, userState);
|
---|
[993] | 436 | }
|
---|
| 437 |
|
---|
[1366] | 438 | public HeuristicLab.Hive.Contracts.ResponseJob SendJob(System.Guid clientId) {
|
---|
| 439 | return base.Channel.SendJob(clientId);
|
---|
[993] | 440 | }
|
---|
| 441 |
|
---|
| 442 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1366] | 443 | public System.IAsyncResult BeginSendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
|
---|
| 444 | return base.Channel.BeginSendJob(clientId, callback, asyncState);
|
---|
[993] | 445 | }
|
---|
| 446 |
|
---|
| 447 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1366] | 448 | public HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result) {
|
---|
| 449 | return base.Channel.EndSendJob(result);
|
---|
[993] | 450 | }
|
---|
| 451 |
|
---|
[1366] | 452 | private System.IAsyncResult OnBeginSendJob(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
[993] | 453 | System.Guid clientId = ((System.Guid)(inValues[0]));
|
---|
[1366] | 454 | return this.BeginSendJob(clientId, callback, asyncState);
|
---|
[993] | 455 | }
|
---|
| 456 |
|
---|
[1366] | 457 | private object[] OnEndSendJob(System.IAsyncResult result) {
|
---|
| 458 | HeuristicLab.Hive.Contracts.ResponseJob retVal = this.EndSendJob(result);
|
---|
[993] | 459 | return new object[] {
|
---|
| 460 | retVal};
|
---|
| 461 | }
|
---|
| 462 |
|
---|
[1366] | 463 | private void OnSendJobCompleted(object state) {
|
---|
| 464 | if ((this.SendJobCompleted != null)) {
|
---|
[993] | 465 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
[1366] | 466 | this.SendJobCompleted(this, new SendJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
[993] | 467 | }
|
---|
| 468 | }
|
---|
| 469 |
|
---|
[1366] | 470 | public void SendJobAsync(System.Guid clientId) {
|
---|
| 471 | this.SendJobAsync(clientId, null);
|
---|
[993] | 472 | }
|
---|
| 473 |
|
---|
[1366] | 474 | public void SendJobAsync(System.Guid clientId, object userState) {
|
---|
| 475 | if ((this.onBeginSendJobDelegate == null)) {
|
---|
| 476 | this.onBeginSendJobDelegate = new BeginOperationDelegate(this.OnBeginSendJob);
|
---|
[993] | 477 | }
|
---|
[1366] | 478 | if ((this.onEndSendJobDelegate == null)) {
|
---|
| 479 | this.onEndSendJobDelegate = new EndOperationDelegate(this.OnEndSendJob);
|
---|
[993] | 480 | }
|
---|
[1366] | 481 | if ((this.onSendJobCompletedDelegate == null)) {
|
---|
| 482 | this.onSendJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobCompleted);
|
---|
[993] | 483 | }
|
---|
[1366] | 484 | base.InvokeAsync(this.onBeginSendJobDelegate, new object[] {
|
---|
| 485 | clientId}, this.onEndSendJobDelegate, this.onSendJobCompletedDelegate, userState);
|
---|
[993] | 486 | }
|
---|
| 487 |
|
---|
[1449] | 488 | public HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
|
---|
[1379] | 489 | return base.Channel.StoreFinishedJobResult(clientId, jobId, result, percentage, exception);
|
---|
[993] | 490 | }
|
---|
| 491 |
|
---|
| 492 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1449] | 493 | public System.IAsyncResult BeginStoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState) {
|
---|
[1379] | 494 | return base.Channel.BeginStoreFinishedJobResult(clientId, jobId, result, percentage, exception, callback, asyncState);
|
---|
[993] | 495 | }
|
---|
| 496 |
|
---|
| 497 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1379] | 498 | public HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResult(System.IAsyncResult result) {
|
---|
| 499 | return base.Channel.EndStoreFinishedJobResult(result);
|
---|
[993] | 500 | }
|
---|
| 501 |
|
---|
[1379] | 502 | private System.IAsyncResult OnBeginStoreFinishedJobResult(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
[1103] | 503 | System.Guid clientId = ((System.Guid)(inValues[0]));
|
---|
[1449] | 504 | System.Guid jobId = ((System.Guid)(inValues[1]));
|
---|
[1103] | 505 | byte[] result = ((byte[])(inValues[2]));
|
---|
[1147] | 506 | double percentage = ((double)(inValues[3]));
|
---|
| 507 | System.Exception exception = ((System.Exception)(inValues[4]));
|
---|
[1379] | 508 | return this.BeginStoreFinishedJobResult(clientId, jobId, result, percentage, exception, callback, asyncState);
|
---|
[993] | 509 | }
|
---|
| 510 |
|
---|
[1379] | 511 | private object[] OnEndStoreFinishedJobResult(System.IAsyncResult result) {
|
---|
| 512 | HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndStoreFinishedJobResult(result);
|
---|
[993] | 513 | return new object[] {
|
---|
| 514 | retVal};
|
---|
| 515 | }
|
---|
| 516 |
|
---|
[1379] | 517 | private void OnStoreFinishedJobResultCompleted(object state) {
|
---|
| 518 | if ((this.StoreFinishedJobResultCompleted != null)) {
|
---|
[993] | 519 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
[1379] | 520 | this.StoreFinishedJobResultCompleted(this, new StoreFinishedJobResultCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
[993] | 521 | }
|
---|
| 522 | }
|
---|
| 523 |
|
---|
[1449] | 524 | public void StoreFinishedJobResultAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
|
---|
[1379] | 525 | this.StoreFinishedJobResultAsync(clientId, jobId, result, percentage, exception, null);
|
---|
[993] | 526 | }
|
---|
| 527 |
|
---|
[1449] | 528 | public void StoreFinishedJobResultAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, object userState) {
|
---|
[1379] | 529 | if ((this.onBeginStoreFinishedJobResultDelegate == null)) {
|
---|
| 530 | this.onBeginStoreFinishedJobResultDelegate = new BeginOperationDelegate(this.OnBeginStoreFinishedJobResult);
|
---|
[993] | 531 | }
|
---|
[1379] | 532 | if ((this.onEndStoreFinishedJobResultDelegate == null)) {
|
---|
| 533 | this.onEndStoreFinishedJobResultDelegate = new EndOperationDelegate(this.OnEndStoreFinishedJobResult);
|
---|
[993] | 534 | }
|
---|
[1379] | 535 | if ((this.onStoreFinishedJobResultCompletedDelegate == null)) {
|
---|
| 536 | this.onStoreFinishedJobResultCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnStoreFinishedJobResultCompleted);
|
---|
[993] | 537 | }
|
---|
[1379] | 538 | base.InvokeAsync(this.onBeginStoreFinishedJobResultDelegate, new object[] {
|
---|
[1103] | 539 | clientId,
|
---|
| 540 | jobId,
|
---|
[1007] | 541 | result,
|
---|
[1147] | 542 | percentage,
|
---|
[1379] | 543 | exception}, this.onEndStoreFinishedJobResultDelegate, this.onStoreFinishedJobResultCompletedDelegate, userState);
|
---|
[993] | 544 | }
|
---|
| 545 |
|
---|
[1449] | 546 | public HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
|
---|
[1379] | 547 | return base.Channel.ProcessSnapshot(clientId, jobId, result, percentage, exception);
|
---|
| 548 | }
|
---|
| 549 |
|
---|
| 550 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1449] | 551 | public System.IAsyncResult BeginProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, System.AsyncCallback callback, object asyncState) {
|
---|
[1379] | 552 | return base.Channel.BeginProcessSnapshot(clientId, jobId, result, percentage, exception, callback, asyncState);
|
---|
| 553 | }
|
---|
| 554 |
|
---|
| 555 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
| 556 | public HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessSnapshot(System.IAsyncResult result) {
|
---|
| 557 | return base.Channel.EndProcessSnapshot(result);
|
---|
| 558 | }
|
---|
| 559 |
|
---|
| 560 | private System.IAsyncResult OnBeginProcessSnapshot(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
| 561 | System.Guid clientId = ((System.Guid)(inValues[0]));
|
---|
[1449] | 562 | System.Guid jobId = ((System.Guid)(inValues[1]));
|
---|
[1379] | 563 | byte[] result = ((byte[])(inValues[2]));
|
---|
| 564 | double percentage = ((double)(inValues[3]));
|
---|
| 565 | System.Exception exception = ((System.Exception)(inValues[4]));
|
---|
| 566 | return this.BeginProcessSnapshot(clientId, jobId, result, percentage, exception, callback, asyncState);
|
---|
| 567 | }
|
---|
| 568 |
|
---|
| 569 | private object[] OnEndProcessSnapshot(System.IAsyncResult result) {
|
---|
| 570 | HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndProcessSnapshot(result);
|
---|
| 571 | return new object[] {
|
---|
| 572 | retVal};
|
---|
| 573 | }
|
---|
| 574 |
|
---|
| 575 | private void OnProcessSnapshotCompleted(object state) {
|
---|
| 576 | if ((this.ProcessSnapshotCompleted != null)) {
|
---|
| 577 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
| 578 | this.ProcessSnapshotCompleted(this, new ProcessSnapshotCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
| 579 | }
|
---|
| 580 | }
|
---|
| 581 |
|
---|
[1449] | 582 | public void ProcessSnapshotAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception) {
|
---|
[1379] | 583 | this.ProcessSnapshotAsync(clientId, jobId, result, percentage, exception, null);
|
---|
| 584 | }
|
---|
| 585 |
|
---|
[1449] | 586 | public void ProcessSnapshotAsync(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception, object userState) {
|
---|
[1379] | 587 | if ((this.onBeginProcessSnapshotDelegate == null)) {
|
---|
| 588 | this.onBeginProcessSnapshotDelegate = new BeginOperationDelegate(this.OnBeginProcessSnapshot);
|
---|
| 589 | }
|
---|
| 590 | if ((this.onEndProcessSnapshotDelegate == null)) {
|
---|
| 591 | this.onEndProcessSnapshotDelegate = new EndOperationDelegate(this.OnEndProcessSnapshot);
|
---|
| 592 | }
|
---|
| 593 | if ((this.onProcessSnapshotCompletedDelegate == null)) {
|
---|
| 594 | this.onProcessSnapshotCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnProcessSnapshotCompleted);
|
---|
| 595 | }
|
---|
| 596 | base.InvokeAsync(this.onBeginProcessSnapshotDelegate, new object[] {
|
---|
| 597 | clientId,
|
---|
| 598 | jobId,
|
---|
| 599 | result,
|
---|
| 600 | percentage,
|
---|
| 601 | exception}, this.onEndProcessSnapshotDelegate, this.onProcessSnapshotCompletedDelegate, userState);
|
---|
| 602 | }
|
---|
| 603 |
|
---|
[993] | 604 | public HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId) {
|
---|
| 605 | return base.Channel.Logout(clientId);
|
---|
| 606 | }
|
---|
| 607 |
|
---|
| 608 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
| 609 | public System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState) {
|
---|
| 610 | return base.Channel.BeginLogout(clientId, callback, asyncState);
|
---|
| 611 | }
|
---|
| 612 |
|
---|
| 613 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
| 614 | public HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result) {
|
---|
| 615 | return base.Channel.EndLogout(result);
|
---|
| 616 | }
|
---|
| 617 |
|
---|
| 618 | private System.IAsyncResult OnBeginLogout(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
| 619 | System.Guid clientId = ((System.Guid)(inValues[0]));
|
---|
| 620 | return this.BeginLogout(clientId, callback, asyncState);
|
---|
| 621 | }
|
---|
| 622 |
|
---|
| 623 | private object[] OnEndLogout(System.IAsyncResult result) {
|
---|
| 624 | HeuristicLab.Hive.Contracts.Response retVal = this.EndLogout(result);
|
---|
| 625 | return new object[] {
|
---|
| 626 | retVal};
|
---|
| 627 | }
|
---|
| 628 |
|
---|
| 629 | private void OnLogoutCompleted(object state) {
|
---|
| 630 | if ((this.LogoutCompleted != null)) {
|
---|
| 631 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
| 632 | this.LogoutCompleted(this, new LogoutCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
| 633 | }
|
---|
| 634 | }
|
---|
| 635 |
|
---|
| 636 | public void LogoutAsync(System.Guid clientId) {
|
---|
| 637 | this.LogoutAsync(clientId, null);
|
---|
| 638 | }
|
---|
| 639 |
|
---|
| 640 | public void LogoutAsync(System.Guid clientId, object userState) {
|
---|
| 641 | if ((this.onBeginLogoutDelegate == null)) {
|
---|
| 642 | this.onBeginLogoutDelegate = new BeginOperationDelegate(this.OnBeginLogout);
|
---|
| 643 | }
|
---|
| 644 | if ((this.onEndLogoutDelegate == null)) {
|
---|
| 645 | this.onEndLogoutDelegate = new EndOperationDelegate(this.OnEndLogout);
|
---|
| 646 | }
|
---|
| 647 | if ((this.onLogoutCompletedDelegate == null)) {
|
---|
| 648 | this.onLogoutCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLogoutCompleted);
|
---|
| 649 | }
|
---|
| 650 | base.InvokeAsync(this.onBeginLogoutDelegate, new object[] {
|
---|
| 651 | clientId}, this.onEndLogoutDelegate, this.onLogoutCompletedDelegate, userState);
|
---|
| 652 | }
|
---|
[1379] | 653 |
|
---|
[1449] | 654 | public HeuristicLab.Hive.Contracts.Response IsJobStillNeeded(System.Guid jobId) {
|
---|
[1379] | 655 | return base.Channel.IsJobStillNeeded(jobId);
|
---|
| 656 | }
|
---|
| 657 |
|
---|
| 658 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1449] | 659 | public System.IAsyncResult BeginIsJobStillNeeded(System.Guid jobId, System.AsyncCallback callback, object asyncState) {
|
---|
[1379] | 660 | return base.Channel.BeginIsJobStillNeeded(jobId, callback, asyncState);
|
---|
| 661 | }
|
---|
| 662 |
|
---|
| 663 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
| 664 | public HeuristicLab.Hive.Contracts.Response EndIsJobStillNeeded(System.IAsyncResult result) {
|
---|
| 665 | return base.Channel.EndIsJobStillNeeded(result);
|
---|
| 666 | }
|
---|
| 667 |
|
---|
| 668 | private System.IAsyncResult OnBeginIsJobStillNeeded(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
[1449] | 669 | System.Guid jobId = ((System.Guid)(inValues[0]));
|
---|
[1379] | 670 | return this.BeginIsJobStillNeeded(jobId, callback, asyncState);
|
---|
| 671 | }
|
---|
| 672 |
|
---|
| 673 | private object[] OnEndIsJobStillNeeded(System.IAsyncResult result) {
|
---|
| 674 | HeuristicLab.Hive.Contracts.Response retVal = this.EndIsJobStillNeeded(result);
|
---|
| 675 | return new object[] {
|
---|
| 676 | retVal};
|
---|
| 677 | }
|
---|
| 678 |
|
---|
| 679 | private void OnIsJobStillNeededCompleted(object state) {
|
---|
| 680 | if ((this.IsJobStillNeededCompleted != null)) {
|
---|
| 681 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
| 682 | this.IsJobStillNeededCompleted(this, new IsJobStillNeededCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
| 683 | }
|
---|
| 684 | }
|
---|
| 685 |
|
---|
[1449] | 686 | public void IsJobStillNeededAsync(System.Guid jobId) {
|
---|
[1379] | 687 | this.IsJobStillNeededAsync(jobId, null);
|
---|
| 688 | }
|
---|
| 689 |
|
---|
[1449] | 690 | public void IsJobStillNeededAsync(System.Guid jobId, object userState) {
|
---|
[1379] | 691 | if ((this.onBeginIsJobStillNeededDelegate == null)) {
|
---|
| 692 | this.onBeginIsJobStillNeededDelegate = new BeginOperationDelegate(this.OnBeginIsJobStillNeeded);
|
---|
| 693 | }
|
---|
| 694 | if ((this.onEndIsJobStillNeededDelegate == null)) {
|
---|
| 695 | this.onEndIsJobStillNeededDelegate = new EndOperationDelegate(this.OnEndIsJobStillNeeded);
|
---|
| 696 | }
|
---|
| 697 | if ((this.onIsJobStillNeededCompletedDelegate == null)) {
|
---|
| 698 | this.onIsJobStillNeededCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnIsJobStillNeededCompleted);
|
---|
| 699 | }
|
---|
| 700 | base.InvokeAsync(this.onBeginIsJobStillNeededDelegate, new object[] {
|
---|
| 701 | jobId}, this.onEndIsJobStillNeededDelegate, this.onIsJobStillNeededCompletedDelegate, userState);
|
---|
| 702 | }
|
---|
| 703 |
|
---|
[1594] | 704 | public HeuristicLab.Hive.Contracts.ResponsePlugin SendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList) {
|
---|
[1379] | 705 | return base.Channel.SendPlugins(pluginList);
|
---|
| 706 | }
|
---|
| 707 |
|
---|
| 708 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
[1594] | 709 | public System.IAsyncResult BeginSendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList, System.AsyncCallback callback, object asyncState) {
|
---|
[1379] | 710 | return base.Channel.BeginSendPlugins(pluginList, callback, asyncState);
|
---|
| 711 | }
|
---|
| 712 |
|
---|
| 713 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
---|
| 714 | public HeuristicLab.Hive.Contracts.ResponsePlugin EndSendPlugins(System.IAsyncResult result) {
|
---|
| 715 | return base.Channel.EndSendPlugins(result);
|
---|
| 716 | }
|
---|
| 717 |
|
---|
| 718 | private System.IAsyncResult OnBeginSendPlugins(object[] inValues, System.AsyncCallback callback, object asyncState) {
|
---|
[1594] | 719 | HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList = ((HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[])(inValues[0]));
|
---|
[1379] | 720 | return this.BeginSendPlugins(pluginList, callback, asyncState);
|
---|
| 721 | }
|
---|
| 722 |
|
---|
| 723 | private object[] OnEndSendPlugins(System.IAsyncResult result) {
|
---|
| 724 | HeuristicLab.Hive.Contracts.ResponsePlugin retVal = this.EndSendPlugins(result);
|
---|
| 725 | return new object[] {
|
---|
| 726 | retVal};
|
---|
| 727 | }
|
---|
| 728 |
|
---|
| 729 | private void OnSendPluginsCompleted(object state) {
|
---|
| 730 | if ((this.SendPluginsCompleted != null)) {
|
---|
| 731 | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
---|
| 732 | this.SendPluginsCompleted(this, new SendPluginsCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
---|
| 733 | }
|
---|
| 734 | }
|
---|
| 735 |
|
---|
[1594] | 736 | public void SendPluginsAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList) {
|
---|
[1379] | 737 | this.SendPluginsAsync(pluginList, null);
|
---|
| 738 | }
|
---|
| 739 |
|
---|
[1594] | 740 | public void SendPluginsAsync(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfo[] pluginList, object userState) {
|
---|
[1379] | 741 | if ((this.onBeginSendPluginsDelegate == null)) {
|
---|
| 742 | this.onBeginSendPluginsDelegate = new BeginOperationDelegate(this.OnBeginSendPlugins);
|
---|
| 743 | }
|
---|
| 744 | if ((this.onEndSendPluginsDelegate == null)) {
|
---|
| 745 | this.onEndSendPluginsDelegate = new EndOperationDelegate(this.OnEndSendPlugins);
|
---|
| 746 | }
|
---|
| 747 | if ((this.onSendPluginsCompletedDelegate == null)) {
|
---|
| 748 | this.onSendPluginsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendPluginsCompleted);
|
---|
| 749 | }
|
---|
| 750 | base.InvokeAsync(this.onBeginSendPluginsDelegate, new object[] {
|
---|
| 751 | pluginList}, this.onEndSendPluginsDelegate, this.onSendPluginsCompletedDelegate, userState);
|
---|
| 752 | }
|
---|
[993] | 753 | }
|
---|
| 754 | }
|
---|