コード例 #1
0
ファイル: AmqpConnection.cs プロジェクト: modulexcite/IL2JS
        public AmqpConnection(TransportBase transport, ProtocolHeader protocolHeader, bool isInitiator, AmqpSettings amqpSettings, AmqpConnectionSettings connectionSettings) :
            base(transport, connectionSettings)
        {
            if (amqpSettings == null)
            {
                throw new ArgumentNullException("amqpSettings");
            }

            this.initialHeader = protocolHeader;
            this.isInitiator = isInitiator;
            this.amqpSettings = amqpSettings;
            this.frameDecoder = new FrameDecoder((int)this.Settings.MaxFrameSize);
            this.sessionsByLocalHandle = new HandleTable<AmqpSession>(this.Settings.ChannelMax.Value);
            this.sessionsByRemoteHandle = new HandleTable<AmqpSession>(this.Settings.ChannelMax.Value);
            this.SessionFactory = this;
        }
コード例 #2
0
ファイル: AmqpConnection.cs プロジェクト: tralivali1234/IL2JS
        public AmqpConnection(TransportBase transport, ProtocolHeader protocolHeader, bool isInitiator, AmqpSettings amqpSettings, AmqpConnectionSettings connectionSettings) :
            base(transport, connectionSettings)
        {
            if (amqpSettings == null)
            {
                throw new ArgumentNullException("amqpSettings");
            }

            this.initialHeader          = protocolHeader;
            this.isInitiator            = isInitiator;
            this.amqpSettings           = amqpSettings;
            this.frameDecoder           = new FrameDecoder((int)this.Settings.MaxFrameSize);
            this.sessionsByLocalHandle  = new HandleTable <AmqpSession>(this.Settings.ChannelMax.Value);
            this.sessionsByRemoteHandle = new HandleTable <AmqpSession>(this.Settings.ChannelMax.Value);
            this.SessionFactory         = this;
        }
コード例 #3
0
 public AmqpFrameConnection(AmqpStream parent, TransportBase transport, int maxFrameSize) :
     base(transport, new AmqpConnectionSettings() { MaxFrameSize = (uint)maxFrameSize })
 {
     this.parent  = parent;
     this.decoder = new FrameDecoder(maxFrameSize);
 }
コード例 #4
0
ファイル: AmqpStream.cs プロジェクト: modulexcite/IL2JS
 public AmqpFrameConnection(AmqpStream parent, TransportBase transport, int maxFrameSize) :
     base(transport, new AmqpConnectionSettings() { MaxFrameSize = (uint)maxFrameSize })
 {
     this.parent = parent;
     this.decoder = new FrameDecoder(maxFrameSize);
 }