DelegatingHeader.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / DelegatingHeader.cs / 1 / DelegatingHeader.cs

                            //------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------

namespace System.ServiceModel.Security 
{
    using System.Xml; 
    using System.ServiceModel.Channels; 
    using System.ServiceModel;
 
    abstract class DelegatingHeader : MessageHeader
    {
        MessageHeader innerHeader;
 
        protected DelegatingHeader(MessageHeader innerHeader)
        { 
            if (innerHeader == null) 
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerHeader"); 
            }
            this.innerHeader = innerHeader;
        }
 
        public override bool MustUnderstand
        { 
            get 
            {
                return this.innerHeader.MustUnderstand; 
            }
        }

        public override string Name 
        {
            get 
            { 
                return this.innerHeader.Name;
            } 
        }

        public override string Namespace
        { 
            get
            { 
                return this.innerHeader.Namespace; 
            }
        } 

        public override bool Relay
        {
            get 
            {
                return this.innerHeader.Relay; 
            } 
        }
 
        public override string Actor
        {
            get
            { 
                return this.innerHeader.Actor;
            } 
        } 

        protected MessageHeader InnerHeader 
        {
            get
            {
                return this.innerHeader; 
            }
        } 
 
        protected override void OnWriteStartHeader(XmlDictionaryWriter writer, MessageVersion messageVersion)
        { 
            this.innerHeader.WriteStartHeader(writer, messageVersion);
        }

        protected override void OnWriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion) 
        {
            this.innerHeader.WriteHeaderContents(writer, messageVersion); 
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK