< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.Tokens.InitiatorServiceModelSecurityTokenRequirement
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/Tokens/InitiatorServiceModelSecurityTokenRequirement.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 16
Coverable lines: 16
Total lines: 83
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%
ToString()100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/Tokens/InitiatorServiceModelSecurityTokenRequirement.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;
 5
 6namespace CoreWCF.Security.Tokens
 7{
 8    internal sealed class InitiatorServiceModelSecurityTokenRequirement : ServiceModelSecurityTokenRequirement
 9    {
 10        //WebHeaderCollection webHeaderCollection;
 11
 12        public InitiatorServiceModelSecurityTokenRequirement()
 013            : base()
 14        {
 015            Properties.Add(IsInitiatorProperty, (object)true);
 016        }
 17
 18        public EndpointAddress TargetAddress
 19        {
 20            get
 21            {
 022                return GetPropertyOrDefault<EndpointAddress>(TargetAddressProperty, null);
 23            }
 24            set
 25            {
 026                Properties[TargetAddressProperty] = value;
 027            }
 28        }
 29
 30        public Uri Via
 31        {
 32            get
 33            {
 034                return GetPropertyOrDefault<Uri>(ViaProperty, null);
 35            }
 36            set
 37            {
 038                Properties[ViaProperty] = value;
 039            }
 40        }
 41
 42        internal bool IsOutOfBandToken
 43        {
 44            get
 45            {
 046                return GetPropertyOrDefault<bool>(IsOutOfBandTokenProperty, false);
 47            }
 48            set
 49            {
 050                Properties[IsOutOfBandTokenProperty] = value;
 051            }
 52        }
 53
 54        internal bool PreferSslCertificateAuthenticator
 55        {
 56            get
 57            {
 058                return GetPropertyOrDefault<bool>(PreferSslCertificateAuthenticatorProperty, false);
 59            }
 60            set
 61            {
 062                Properties[PreferSslCertificateAuthenticatorProperty] = value;
 063            }
 64        }
 65
 66        //internal WebHeaderCollection WebHeaders
 67        //{
 68        //    get
 69        //    {
 70        //        return this.webHeaderCollection;
 71        //    }
 72        //    set
 73        //    {
 74        //        this.webHeaderCollection = value;
 75        //    }
 76        //}
 77
 78        public override string ToString()
 79        {
 080            return InternalToString();
 81        }
 82    }
 83}