| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Threading; |
| | | 6 | | using CoreWCF.Channels; |
| | | 7 | | |
| | | 8 | | namespace CoreWCF.Dispatcher |
| | | 9 | | { |
| | | 10 | | internal struct ProxyRpc |
| | | 11 | | { |
| | | 12 | | internal readonly string Action; |
| | | 13 | | //internal ServiceModelActivity Activity; |
| | | 14 | | internal Guid ActivityId; |
| | | 15 | | internal readonly ServiceChannel Channel; |
| | | 16 | | internal object[] Correlation; |
| | | 17 | | internal readonly object[] InputParameters; |
| | | 18 | | internal readonly ProxyOperationRuntime Operation; |
| | | 19 | | internal object[] OutputParameters; |
| | | 20 | | internal Message Request; |
| | | 21 | | internal Message Reply; |
| | | 22 | | internal object ReturnValue; |
| | | 23 | | internal MessageVersion MessageVersion; |
| | | 24 | | //internal readonly TimeoutHelper TimeoutHelper; |
| | | 25 | | internal CancellationToken CancellationToken; |
| | | 26 | | //EventTraceActivity eventTraceActivity; |
| | | 27 | | |
| | | 28 | | internal ProxyRpc(ServiceChannel channel, ProxyOperationRuntime operation, string action, object[] inputs, Cance |
| | | 29 | | { |
| | 1 | 30 | | Action = action; |
| | | 31 | | //this.Activity = null; |
| | | 32 | | //this.eventTraceActivity = null; |
| | 1 | 33 | | Channel = channel; |
| | 1 | 34 | | Correlation = EmptyArray.Allocate(operation.Parent.CorrelationCount); |
| | 1 | 35 | | InputParameters = inputs; |
| | 1 | 36 | | Operation = operation; |
| | 1 | 37 | | OutputParameters = null; |
| | 1 | 38 | | Request = null; |
| | 1 | 39 | | Reply = null; |
| | 1 | 40 | | ActivityId = Guid.Empty; |
| | 1 | 41 | | ReturnValue = null; |
| | 1 | 42 | | MessageVersion = channel.MessageVersion; |
| | 1 | 43 | | CancellationToken = token; |
| | 1 | 44 | | } |
| | | 45 | | |
| | | 46 | | //internal EventTraceActivity EventTraceActivity |
| | | 47 | | //{ |
| | | 48 | | // get |
| | | 49 | | // { |
| | | 50 | | // if (this.eventTraceActivity == null) |
| | | 51 | | // { |
| | | 52 | | // this.eventTraceActivity = new EventTraceActivity(); |
| | | 53 | | // } |
| | | 54 | | // return this.eventTraceActivity; |
| | | 55 | | // } |
| | | 56 | | |
| | | 57 | | // set |
| | | 58 | | // { |
| | | 59 | | // this.eventTraceActivity = value; |
| | | 60 | | // } |
| | | 61 | | //} |
| | | 62 | | } |
| | | 63 | | } |