< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.ServiceChannelBase
Assembly: CoreWCF.Http
File(s): /home/runner/work/CoreWCF/CoreWCF/src/Common/src/DuplexChannels/CoreWCF/Channels/ServiceChannelBase.cs
Line coverage
76%
Covered lines: 10
Uncovered lines: 3
Coverable lines: 13
Total lines: 41
Line coverage: 76.9%
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%
GetProperty()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/Common/src/DuplexChannels/CoreWCF/Channels/ServiceChannelBase.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 CoreWCF.Configuration;
 6
 7namespace CoreWCF.Channels
 8{
 9    internal abstract class ServiceChannelBase : CommunicationObject, IChannel, IDefaultCommunicationTimeouts
 10    {
 11        private readonly IDefaultCommunicationTimeouts _timeouts;
 12
 1113        protected ServiceChannelBase(IDefaultCommunicationTimeouts timeouts)
 14        {
 1115            _timeouts = new ImmutableCommunicationTimeouts(timeouts);
 1116        }
 17
 618        TimeSpan IDefaultCommunicationTimeouts.CloseTimeout => DefaultCloseTimeout;
 19
 020        TimeSpan IDefaultCommunicationTimeouts.OpenTimeout => DefaultOpenTimeout;
 21
 622        TimeSpan IDefaultCommunicationTimeouts.ReceiveTimeout => DefaultReceiveTimeout;
 23
 024        TimeSpan IDefaultCommunicationTimeouts.SendTimeout => DefaultSendTimeout;
 25
 626        protected override TimeSpan DefaultCloseTimeout => _timeouts.CloseTimeout;
 27
 1128        protected override TimeSpan DefaultOpenTimeout => _timeouts.OpenTimeout;
 29
 630        protected TimeSpan DefaultReceiveTimeout => _timeouts.ReceiveTimeout;
 31
 032        protected TimeSpan DefaultSendTimeout => _timeouts.SendTimeout;
 33
 4834        public virtual IServiceChannelDispatcher ChannelDispatcher { get; set; }
 35
 36        public virtual T GetProperty<T>() where T : class
 37        {
 1238            return null;
 39        }
 40    }
 41}