< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.MsmqDefaults
Assembly: CoreWCF.MSMQ
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.MSMQ/src/CoreWCF/Channels/MsmqDefaults.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 42
Line coverage: 0%
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
.cctor()100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.MSMQ/src/CoreWCF/Channels/MsmqDefaults.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 CoreWCF.Security;
 7
 8namespace CoreWCF.Channels
 9{
 10    internal static class MsmqDefaults
 11    {
 12        internal const MessageCredentialType DefaultClientCredentialType = MessageCredentialType.Windows;
 13        internal const Uri CustomDeadLetterQueue = null;
 14        internal const DeadLetterQueue DeadLetterQueue = CoreWCF.Channels.DeadLetterQueue.System;
 15        internal const bool Durable = true;
 16        internal const bool ExactlyOnce = true;
 17        internal const bool ReceiveContextEnabled = true;
 18        internal const int MaxRetryCycles = 2;
 19        internal const int MaxPoolSize = 8;
 20        internal const MsmqAuthenticationMode MsmqAuthenticationMode1 = MsmqAuthenticationMode.WindowsDomain;
 21        internal const MsmqEncryptionAlgorithm MsmqEncryptionAlgorithm1 = MsmqEncryptionAlgorithm.RC4Stream;
 22        internal const MsmqSecureHashAlgorithm DefaultMsmqSecureHashAlgorithm = MsmqSecureHashAlgorithm.Sha256;
 023        internal static MsmqSecureHashAlgorithm MsmqSecureHashAlgorithm = MsmqSecureHashAlgorithm.Sha1;
 24        internal const ProtectionLevel MsmqProtectionLevel = ProtectionLevel.Sign;
 25        // internal const ReceiveErrorHandling ReceiveErrorHandling = System.ServiceModel.ReceiveErrorHandling.Fault;
 26        internal const int ReceiveRetryCount = 5;
 27        // internal const QueueTransferProtocol QueueTransferProtocol = System.ServiceModel.QueueTransferProtocol.Native
 028        internal static TimeSpan RetryCycleDelay { get { return TimeSpan.FromMinutes(30); } }
 29        internal const string RetryCycleDelayString = "00:30:00";
 030        internal static TimeSpan TimeToLive { get { return TimeSpan.FromDays(1); } }
 31        internal const string TimeToLiveString = "1.00:00:00";
 32        internal const bool UseActiveDirectory = false;
 33        internal const bool UseSourceJournal = false;
 34        internal const bool UseMsmqTracing = false;
 035        internal static TimeSpan ValidityDuration { get { return TimeSpan.FromMinutes(5); } }
 36        internal const string ValidityDurationString = "00:05:00";
 37        internal static SecurityAlgorithmSuite MessageSecurityAlgorithmSuite
 38        {
 039            get { return SecurityAlgorithmSuite.Default; }
 40        }
 41    }
 42}