< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.MessageHeaderAttribute
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/MessageHeaderAttribute.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 32
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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/MessageHeaderAttribute.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
 7{
 8    [AttributeUsage(CoreWCFAttributeTargets.MessageMember, AllowMultiple = false, Inherited = false)]
 9    public class MessageHeaderAttribute : MessageContractMemberAttribute
 10    {
 11        private bool _mustUnderstand;
 12        private bool _relay;
 13
 14        public bool MustUnderstand
 15        {
 8616            get { return _mustUnderstand; }
 1817            set { _mustUnderstand = value; IsMustUnderstandSet = true; }
 18        }
 19
 20        public bool Relay
 21        {
 8622            get { return _relay; }
 1823            set { _relay = value; IsRelaySet = true; }
 24        }
 25
 8626        public string Actor { get; set; }
 27
 628        internal bool IsMustUnderstandSet { get; private set; }
 29
 630        internal bool IsRelaySet { get; private set; }
 31    }
 32}