< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.ChannelManagerBase
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/ChannelManagerBase.cs
Line coverage
22%
Covered lines: 2
Uncovered lines: 7
Coverable lines: 9
Total lines: 52
Line coverage: 22.2%
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%
CreateChannelTypeNotSupportedException(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/ChannelManagerBase.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;
 5
 6namespace CoreWCF.Channels
 7{
 8    public abstract class ChannelManagerBase : CommunicationObject, IDefaultCommunicationTimeouts
 9    {
 210        protected ChannelManagerBase()
 11        {
 212        }
 13
 14        protected abstract TimeSpan DefaultReceiveTimeout { get; }
 15        protected abstract TimeSpan DefaultSendTimeout { get; }
 16
 17        internal TimeSpan InternalReceiveTimeout
 18        {
 019            get { return DefaultReceiveTimeout; }
 20        }
 21
 22        internal TimeSpan InternalSendTimeout
 23        {
 024            get { return DefaultSendTimeout; }
 25        }
 26
 27        TimeSpan IDefaultCommunicationTimeouts.CloseTimeout
 28        {
 029            get { return DefaultCloseTimeout; }
 30        }
 31
 32        TimeSpan IDefaultCommunicationTimeouts.OpenTimeout
 33        {
 034            get { return DefaultOpenTimeout; }
 35        }
 36
 37        TimeSpan IDefaultCommunicationTimeouts.ReceiveTimeout
 38        {
 039            get { return DefaultReceiveTimeout; }
 40        }
 41
 42        TimeSpan IDefaultCommunicationTimeouts.SendTimeout
 43        {
 044            get { return DefaultSendTimeout; }
 45        }
 46
 47        internal Exception CreateChannelTypeNotSupportedException(Type type)
 48        {
 049            return new ArgumentException(SR.Format(SR.ChannelTypeNotSupported, type), "TChannel");
 50        }
 51    }
 52}