File: System\ServiceModel\Discovery\DiscoveryClientDuplexSessionChannel.cs
Project: ndp\cdf\src\NetFx40\System.ServiceModel.Discovery\System.ServiceModel.Discovery.csproj (System.ServiceModel.Discovery)
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//----------------------------------------------------------------
 
namespace System.ServiceModel.Discovery
{
    using System.ServiceModel.Channels;
 
    class DiscoveryClientDuplexSessionChannel : DiscoveryClientDuplexChannel<IDuplexSessionChannel>, IDuplexSessionChannel
    {
        public DiscoveryClientDuplexSessionChannel(
            ChannelManagerBase channelManagerBase,
            IChannelFactory<IDuplexSessionChannel> innerChannelFactory,
            FindCriteria findCriteria,
            DiscoveryEndpointProvider discoveryEndpointProvider)
            : base(channelManagerBase, innerChannelFactory, findCriteria, discoveryEndpointProvider)
        {
        }
 
        public IDuplexSession Session
        {
            get 
            {
                if (this.InnerChannel == null)
                {
                    return null;    
                }
 
                return this.InnerChannel.Session;
            }
        }
    }
}