TransportSecurityProtocolFactory.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 / TransportSecurityProtocolFactory.cs / 1 / TransportSecurityProtocolFactory.cs

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

namespace System.ServiceModel.Security 
{
    // Note that this protocol and other protocls represented by its 
    // subclasses rely on transport security to provide message 
    // integrity, confidentiality and request-reply correlation.  SOAP
    // level security features are add-ons to support custom tokens, 
    // and do not have the responsibility to protect specific exchange
    // patterns.  So, thie protocol return true to both requst-reply
    // support as well as duplex support.
    class TransportSecurityProtocolFactory : SecurityProtocolFactory 
    {
        public TransportSecurityProtocolFactory() 
            : base() 
        {
        } 

        internal TransportSecurityProtocolFactory(TransportSecurityProtocolFactory factory)
            : base(factory)
        { 
        }
 
        public override bool SupportsDuplex 
        {
            get 
            {
                return true;
            }
        } 

        public override bool SupportsReplayDetection 
        { 
            get
            { 
                return false;
            }
        }
 
        protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout)
        { 
            return new TransportSecurityProtocol(this, target, via); 
        }
    } 
}

// 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