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

                            //------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel
{ 
    using System.ServiceModel.Channels;
 
    public abstract class DuplexClientBase : ClientBase 
        where TChannel : class
    { 
        // IMPORTANT: any changes to the set of protected .ctors of this class need to be reflected
        // in ServiceContractGenerator.cs as well.

        protected DuplexClientBase(object callbackInstance) 
            : this(new InstanceContext(callbackInstance))
        { 
        } 
        protected DuplexClientBase(object callbackInstance, string endpointConfigurationName)
            : this(new InstanceContext(callbackInstance), endpointConfigurationName) 
        {
        }
        protected DuplexClientBase(object callbackInstance, string endpointConfigurationName, string remoteAddress)
            : this(new InstanceContext(callbackInstance), endpointConfigurationName, remoteAddress) 
        {
        } 
        protected DuplexClientBase(object callbackInstance, string endpointConfigurationName, EndpointAddress remoteAddress) 
            : this(new InstanceContext(callbackInstance), endpointConfigurationName, remoteAddress)
        { 
        }
        protected DuplexClientBase(object callbackInstance, Binding binding, EndpointAddress remoteAddress)
            : this(new InstanceContext(callbackInstance), binding, remoteAddress)
        { 
        }
 
        protected DuplexClientBase(InstanceContext callbackInstance) 
            :base(callbackInstance)
        { 
        }
        protected DuplexClientBase(InstanceContext callbackInstance, string endpointConfigurationName)
            : base(callbackInstance, endpointConfigurationName)
        { 
        }
        protected DuplexClientBase(InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress) 
            : base(callbackInstance, endpointConfigurationName, remoteAddress) 
        {
        } 
        protected DuplexClientBase(InstanceContext callbackInstance, string endpointConfigurationName, EndpointAddress remoteAddress)
            : base(callbackInstance, endpointConfigurationName, remoteAddress)
        {
        } 
        protected DuplexClientBase(InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress)
            : base(callbackInstance, binding, remoteAddress) 
        { 
        }
 
        protected override TChannel CreateChannel()
        {
            return this.ChannelFactory.CreateChannel();
        } 

        public IDuplexContextChannel InnerDuplexChannel 
        { 
            get
            { 
                return (IDuplexContextChannel)InnerChannel;
            }
        }
    } 
}

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