public ServerSessionPreambleConnectionReader(Microsoft.ServiceBus.Channels.IConnection connection, Action connectionDequeuedCallback, long streamPosition, int offset, int size, Microsoft.ServiceBus.Channels.TransportSettingsCallback transportSettingsCallback, Microsoft.ServiceBus.Channels.ConnectionClosedCallback closedCallback, Microsoft.ServiceBus.Channels.ServerSessionPreambleCallback callback) : base(connection, closedCallback) { this.rawConnection = connection; this.decoder = new Microsoft.ServiceBus.Channels.ServerSessionDecoder(streamPosition, base.MaxViaSize, base.MaxContentTypeSize); this.offset = offset; this.size = size; this.transportSettingsCallback = transportSettingsCallback; this.callback = callback; base.ConnectionDequeuedCallback = connectionDequeuedCallback; }
public ConnectionDemuxer(Microsoft.ServiceBus.Channels.IConnectionListener listener, int maxAccepts, int maxPendingConnections, TimeSpan channelInitializationTimeout, TimeSpan idleTimeout, int maxPooledConnections, Microsoft.ServiceBus.Channels.TransportSettingsCallback transportSettingsCallback, Microsoft.ServiceBus.Channels.SingletonPreambleDemuxCallback singletonPreambleCallback, Microsoft.ServiceBus.Channels.ServerSessionPreambleDemuxCallback serverSessionPreambleCallback, Microsoft.ServiceBus.Channels.ErrorCallback errorCallback) { this.connectionReaders = new List <Microsoft.ServiceBus.Channels.InitialServerConnectionReader>(); this.acceptor = new Microsoft.ServiceBus.Channels.ConnectionAcceptor(listener, maxAccepts, maxPendingConnections, new Microsoft.ServiceBus.Channels.ConnectionAvailableCallback(this.OnConnectionAvailable), errorCallback); this.channelInitializationTimeout = channelInitializationTimeout; this.idleTimeout = idleTimeout; this.maxPooledConnections = maxPooledConnections; this.onConnectionClosed = new Microsoft.ServiceBus.Channels.ConnectionClosedCallback(this.OnConnectionClosed); this.transportSettingsCallback = transportSettingsCallback; this.singletonPreambleCallback = singletonPreambleCallback; this.serverSessionPreambleCallback = serverSessionPreambleCallback; }