< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.UnixDomainTransportDefaults
Assembly: CoreWCF.UnixDomainSocket
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.UnixDomainSocket/src/CoreWCF/Channels/TransportDefaults.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 58
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
GetListenBacklog()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.UnixDomainSocket/src/CoreWCF/Channels/TransportDefaults.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.Net.Security;
 6using System.Security.Authentication;
 7
 8namespace CoreWCF.Channels
 9{
 10    internal static class TransportDefaults
 11    {
 12        internal const bool ExtractGroupsForWindowsAccounts = true; //SspiSecurityTokenProvider.DefaultExtractWindowsGro
 13        internal const long MaxReceivedMessageSize = 65536;
 14        internal const HostNameComparisonMode HostNameComparisonMode = CoreWCF.HostNameComparisonMode.Exact;
 15        internal const int MaxDrainSize = (int)MaxReceivedMessageSize;
 16        internal const long MaxBufferPoolSize = 512 * 1024;
 17        internal const int MaxBufferSize = (int)MaxReceivedMessageSize;
 18        internal const SslProtocols SslProtocols = System.Security.Authentication.SslProtocols.None; // Let the OS decid
 19    }
 20
 21    internal static class ConnectionOrientedTransportDefaults
 22    {
 23        internal const int ConnectionBufferSize = 8192;
 24        internal const HostNameComparisonMode HostNameComparisonMode = CoreWCF.HostNameComparisonMode.StrongWildcard;
 25        internal static TimeSpan IdleTimeout { get { return TimeSpan.FromMinutes(2); } }
 26        internal static TimeSpan ChannelInitializationTimeout { get { return TimeSpan.FromSeconds(30); } }
 27        internal const int MaxContentTypeSize = 256;
 28        internal const int MaxOutboundConnectionsPerEndpoint = 10;
 29        internal static TimeSpan MaxOutputDelay { get { return TimeSpan.FromMilliseconds(200); } }
 30
 31        internal const int MaxViaSize = 2048;
 32        internal const ProtectionLevel ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
 33        internal const TransferMode TransferMode = CoreWCF.TransferMode.Buffered;
 34
 35        internal static int GetMaxConnections()
 36        {
 37            return GetMaxPendingConnections();
 38        }
 39
 40        internal static int GetMaxPendingConnections()
 41        {
 42            return 12 * Environment.ProcessorCount;
 43        }
 44
 45        internal static int GetMaxPendingAccepts()
 46        {
 47            return 2 * Environment.ProcessorCount;
 48        }
 49    }
 50
 51    internal static class UnixDomainTransportDefaults
 52    {
 53        internal static int GetListenBacklog()
 54        {
 755            return 12 * Environment.ProcessorCount;
 56        }
 57    }
 58}

Methods/Properties

GetListenBacklog()