< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.RequestContext
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/RequestContext.cs
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 25
Line coverage: 75%
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
Dispose(...)100%11100%
OnOperationInvoke()100%110%
System.IDisposable.Dispose()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/RequestContext.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 System.Threading.Tasks;
 7
 8namespace CoreWCF.Channels
 9{
 10    public abstract class RequestContext : IDisposable
 11    {
 12        public abstract Message RequestMessage { get; }
 13        public abstract void Abort();
 14        public abstract Task ReplyAsync(Message message);
 15        public abstract Task ReplyAsync(Message message, CancellationToken token);
 16        public abstract Task CloseAsync();
 17        public abstract Task CloseAsync(CancellationToken token);
 64818        protected virtual void Dispose(bool disposing) { }
 019        public virtual void OnOperationInvoke() { }
 20        void IDisposable.Dispose()
 21        {
 64822            Dispose(true);
 64823        }
 24    }
 25}