Exemplo n.º 1
0
 protected FramingDuplexSessionChannel(ConnectionOrientedTransportChannelListener channelListener,
                                       EndpointAddress localAddress, Uri localVia, bool exposeConnectionProperty)
     : this(channelListener, channelListener, localAddress, localVia,
            EndpointAddress.AnonymousAddress, channelListener.MessageVersion.Addressing.AnonymousUri(), exposeConnectionProperty)
 {
     Session = FramingConnectionDuplexSession.CreateSession(this, channelListener.Upgrade);
 }
Exemplo n.º 2
0
 protected FramingDuplexSessionChannel(ChannelManagerBase factory, IConnectionOrientedTransportFactorySettings settings,
                                       EndpointAddress remoteAddress, Uri via, bool exposeConnectionProperty)
     : this(factory, settings, s_anonymousEndpointAddress, settings.MessageVersion.Addressing == AddressingVersion.None ? null : new Uri("http://www.w3.org/2005/08/addressing/anonymous"),
            remoteAddress, via, exposeConnectionProperty)
 {
     this.Session = FramingConnectionDuplexSession.CreateSession(this, settings.Upgrade);
 }
Exemplo n.º 3
0
 protected FramingDuplexSessionChannel(ChannelManagerBase factory, IConnectionOrientedTransportFactorySettings settings,
                                       EndpointAddress remoteAddresss, Uri via, bool exposeConnectionProperty)
     : this(factory, settings, EndpointAddress.AnonymousAddress, settings.MessageVersion.Addressing.AnonymousUri(),
            remoteAddresss, via, exposeConnectionProperty)
 {
     Session = FramingConnectionDuplexSession.CreateSession(this, settings.Upgrade);
 }
Exemplo n.º 4
0
 protected FramingDuplexSessionChannel(FramingConnection connection, ITransportFactorySettings settings, bool exposeConnectionProperty)
     : this(settings, new EndpointAddress(connection.ServiceDispatcher.BaseAddress), connection.Via,
            EndpointAddress.AnonymousAddress, connection.MessageEncoder.MessageVersion.Addressing.AnonymousUri, exposeConnectionProperty)
 {
     Session = FramingConnectionDuplexSession.CreateSession(this, connection.StreamUpgradeAcceptor);
 }