< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Dispatcher.ProxyRpc
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Dispatcher/ProxyRpc.cs
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 63
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Dispatcher/ProxyRpc.cs

#LineLine coverage
 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
 4using System;
 5using System.Threading;
 6using CoreWCF.Channels;
 7
 8namespace 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        {
 130            Action = action;
 31            //this.Activity = null;
 32            //this.eventTraceActivity = null;
 133            Channel = channel;
 134            Correlation = EmptyArray.Allocate(operation.Parent.CorrelationCount);
 135            InputParameters = inputs;
 136            Operation = operation;
 137            OutputParameters = null;
 138            Request = null;
 139            Reply = null;
 140            ActivityId = Guid.Empty;
 141            ReturnValue = null;
 142            MessageVersion = channel.MessageVersion;
 143            CancellationToken = token;
 144        }
 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}