private IMethodReturnMessage InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) { object[] objArray; object[] ins = operation.MapSyncInputs(methodCall, out objArray); object ret = this.serviceChannel.Call(operation.Action, operation.IsOneWay, operation, ins, objArray); object[] returnArgs = operation.MapSyncOutputs(methodCall, objArray, ref ret); return(this.CreateReturnMessage(ret, returnArgs, methodCall)); }
private object InvokeService(MethodCall methodCall, ProxyOperationRuntime operation) { object[] outs; object[] ins = operation.MapSyncInputs(methodCall, out outs); object ret = _serviceChannel.Call(operation.Action, operation.IsOneWay, operation, ins, outs); operation.MapSyncOutputs(methodCall, outs, ref ret); return(ret); }
private object InvokeService(MethodCall methodCall, ProxyOperationRuntime operation) { object[] ins = operation.MapSyncInputs(methodCall, out object[] outs); object ret; using (TaskHelpers.RunTaskContinuationsOnOurThreads()) { ret = _serviceChannel.CallAsync(operation.Action, operation.IsOneWay, operation, ins, outs).GetAwaiter().GetResult(); } operation.MapSyncOutputs(methodCall, outs, ref ret); return(ret); }