< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.MessageSecurityException
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/MessageSecurityException.cs
Line coverage
31%
Covered lines: 5
Uncovered lines: 11
Coverable lines: 16
Total lines: 60
Line coverage: 31.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%110%
.ctor(...)100%11100%
.ctor(...)100%11100%
.ctor(...)100%110%
.ctor(...)100%110%
.ctor(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/MessageSecurityException.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.Channels;
 6
 7namespace CoreWCF.Security
 8{
 9    [Serializable]
 10    public class MessageSecurityException : CommunicationException
 11    {
 12        private readonly MessageFault _fault;
 13        private readonly bool _isReplay = false;
 14
 15        public MessageSecurityException()
 016            : base()
 17        {
 018        }
 19
 20        public MessageSecurityException(string message)
 421            : base(message)
 22        {
 423        }
 24
 25        public MessageSecurityException(string message, Exception innerException)
 2926            : base(message, innerException)
 27        {
 2928        }
 29
 30        protected MessageSecurityException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serializa
 031            : base(info, context)
 32        {
 033        }
 34
 35        internal MessageSecurityException(string message, Exception innerException, MessageFault fault)
 036            : base(message, innerException)
 37        {
 038            _fault = fault;
 039        }
 40
 41        internal MessageSecurityException(string message, bool isReplay)
 042            : base(message)
 43        {
 044            _isReplay = isReplay;
 045        }
 46
 47        internal bool ReplayDetected
 48        {
 49            get
 50            {
 051                return _isReplay;
 52            }
 53        }
 54
 55        internal MessageFault Fault
 56        {
 3157            get { return _fault; }
 58        }
 59    }
 60}