Changeset 11468 for branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/ClientPort.cs
- Timestamp:
- 10/16/14 03:57:49 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/ClientPort.cs
r11454 r11468 26 26 using System.Drawing; 27 27 using System.Linq; 28 using System.Threading; 29 using System.Threading.Tasks; 28 30 29 31 namespace HeuristicLab.Optimization.Networks { … … 127 129 return parameters; 128 130 } 129 public ServiceParameterCollection Call (ServiceParameterCollection parameters) {131 public ServiceParameterCollection CallService(ServiceParameterCollection parameters) { 130 132 if (!Valid) throw new InvalidOperationException("Port configurations do not match"); 131 return ServicePort.Call(parameters); 133 return ServicePort.Process(parameters); 134 } 135 public ServiceParameterCollection CallService(ServiceParameterCollection parameters, CancellationToken token) { 136 if (!Valid) throw new InvalidOperationException("Port configurations do not match"); 137 return ServicePort.Process(parameters, token); 138 } 139 public async Task<ServiceParameterCollection> CallServiceAsync(ServiceParameterCollection parameters) { 140 if (!Valid) throw new InvalidOperationException("Port configurations do not match"); 141 return await ServicePort.ProcessAsync(parameters); 142 } 143 public async Task<ServiceParameterCollection> CallServiceAsync(ServiceParameterCollection parameters, CancellationToken token) { 144 if (!Valid) throw new InvalidOperationException("Port configurations do not match"); 145 return await ServicePort.ProcessAsync(parameters, token); 132 146 } 133 147
Note: See TracChangeset
for help on using the changeset viewer.