internal bool IsCompatible(Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener channelListener) { if (channelListener.InheritBaseAddressSettings) { return(true); } if (!(this.ChannelInitializationTimeout == channelListener.ChannelInitializationTimeout) || this.ConnectionBufferSize != channelListener.ConnectionBufferSize || this.MaxPendingConnections != channelListener.MaxPendingConnections || !(this.MaxOutputDelay == channelListener.MaxOutputDelay) || this.MaxPendingAccepts != channelListener.MaxPendingAccepts || !(this.idleTimeout == channelListener.IdleTimeout)) { return(false); } return(this.maxPooledConnections == channelListener.MaxPooledConnections); }
public ServerFramingDuplexSessionChannel(Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener channelListener, Microsoft.ServiceBus.Channels.ServerSessionPreambleConnectionReader preambleReader, EndpointAddress localAddress, bool exposeConnectionProperty, Microsoft.ServiceBus.Channels.ConnectionDemuxer connectionDemuxer) : base(channelListener, localAddress, preambleReader.Via, exposeConnectionProperty) { this.channelListener = channelListener; this.connectionDemuxer = connectionDemuxer; base.Connection = preambleReader.Connection; this.decoder = preambleReader.Decoder; this.connectionBuffer = preambleReader.connectionBuffer; this.offset = preambleReader.BufferOffset; this.size = preambleReader.BufferSize; this.rawConnection = preambleReader.RawConnection; StreamUpgradeProvider upgrade = channelListener.Upgrade; if (upgrade != null) { this.upgradeAcceptor = upgrade.CreateUpgradeAcceptor(); } MessagingClientEtwProvider.Provider.RelayChannelConnectionTransfer(base.Activity, base.Connection.Activity); }
public IDuplexSessionChannel CreateDuplexSessionChannel(Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener channelListener, EndpointAddress localAddress, bool exposeConnectionProperty, Microsoft.ServiceBus.Channels.ConnectionDemuxer connectionDemuxer) { return(new Microsoft.ServiceBus.Channels.ServerSessionPreambleConnectionReader.ServerFramingDuplexSessionChannel(channelListener, this, localAddress, exposeConnectionProperty, connectionDemuxer)); }
protected FramingDuplexSessionChannel(Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener channelListener, EndpointAddress localAddress, Uri localVia, bool exposeConnectionProperty) : this(channelListener, channelListener, localAddress, localVia, EndpointAddress2.AnonymousAddress, (Uri)InvokeHelper.InvokeInstanceGet(typeof(AddressingVersion), channelListener.MessageVersion.Addressing, "AnonymousUri"), exposeConnectionProperty) { this.duplexSession = Microsoft.ServiceBus.Channels.FramingDuplexSessionChannel.ConnectionDuplexSession.CreateSession(this, channelListener.Upgrade); }
public ConnectionOrientedTransportReplyChannelAcceptor(Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener listener) : base(listener) { this.upgrade = listener.GetUpgrade(); }