< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.IdentityModel.Tokens.SecurityTokenReplayDetectedException
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/SecurityTokenReplayDetectedException.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 47
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
.ctor()100%110%
.ctor(...)100%110%
.ctor(...)100%110%
.ctor(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/SecurityTokenReplayDetectedException.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.Runtime.Serialization;
 6
 7namespace CoreWCF.IdentityModel.Tokens
 8{
 9    /// <summary>
 10    /// Throw this exception when a received Security Token has been replayed.
 11    /// </summary>
 12    [Serializable]
 13    public class SecurityTokenReplayDetectedException : SecurityTokenValidationException
 14    {
 15        /// <summary>
 16        /// Initializes a new instance of  <see cref="SecurityTokenReplayDetectedException"/>
 17        /// </summary>
 18        public SecurityTokenReplayDetectedException()
 019            : base(SR.Format(SR.ID1070))
 20        {
 021        }
 22
 23        /// <summary>
 24        /// Initializes a new instance of  <see cref="SecurityTokenReplayDetectedException"/>
 25        /// </summary>
 26        public SecurityTokenReplayDetectedException(string message)
 027            : base(message)
 28        {
 029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of  <see cref="SecurityTokenReplayDetectedException"/>
 33        /// </summary>
 34        public SecurityTokenReplayDetectedException(string message, Exception inner)
 035            : base(message, inner)
 36        {
 037        }
 38
 39        /// <summary>
 40        /// Initializes a new instance of  <see cref="SecurityTokenReplayDetectedException"/>
 41        /// </summary>
 42        protected SecurityTokenReplayDetectedException(SerializationInfo info, StreamingContext context)
 043            : base(info, context)
 44        {
 045        }
 46    }
 47}