Ejemplo n.º 1
0
 public IncomingSessionChannel(AmqpSession session)
     : base(session, session.settings.IncomingBufferSize)
 {
     this.name             = session.ToString() + "(in)";
     this.pendingTransfers = new SerializedWorker <Tuple <AmqpLink, Transfer> >(this.OnTransfer, null, false);
     this.incomingWindow   = session.settings.IncomingWindow();
     this.flowThreshold    = this.incomingWindow == uint.MaxValue ? uint.MaxValue : this.incomingWindow * 2 / 3;
     this.IsReceiver       = true;
 }
Ejemplo n.º 2
0
 public OutgoingSessionChannel(AmqpSession session)
     : base(session, session.settings.OutgoingBufferSize)
 {
     this.name         = session.ToString() + "(out)";
     this.maxFrameSize = session.connection.Settings.MaxFrameSize();
     this.onSettledDeliveryComplete = this.OnSettledDeliveryComplete;
     this.inflightDeliveries        = new SerializedWorker <Delivery>(this.OnSendDelivery, null, false);
     this.nextOutgoingId            = session.settings.NextOutgoingId.Value;
     this.outgoingWindow            = session.settings.OutgoingWindow.Value;
     this.remoteIncomingWindow      = session.settings.OutgoingWindow.Value;
     this.IsReceiver = false;
 }
Ejemplo n.º 3
0
 public OutgoingSessionChannel(AmqpSession session)
     : base(session, session.settings.OutgoingBufferSize)
 {
     this.name = session.ToString() + "(out)";
     this.maxFrameSize = session.connection.Settings.MaxFrameSize();
     this.onSettledDeliveryComplete = this.OnSettledDeliveryComplete;
     this.inflightDeliveries = new SerializedWorker<Delivery>(this.OnSendDelivery, null, false);
     this.nextOutgoingId = session.settings.NextOutgoingId.Value;
     this.outgoingWindow = session.settings.OutgoingWindow.Value;
     this.remoteIncomingWindow = session.settings.OutgoingWindow.Value;
     this.IsReceiver = false;
 }
Ejemplo n.º 4
0
 public IncomingSessionChannel(AmqpSession session)
     : base(session, session.settings.IncomingBufferSize)
 {
     this.name = session.ToString() + "(in)";
     this.pendingTransfers = new SerializedWorker<Tuple<AmqpLink, Transfer>>(this.OnTransfer, null, false);
     this.incomingWindow = session.settings.IncomingWindow();
     this.flowThreshold = this.incomingWindow == uint.MaxValue ? uint.MaxValue : this.incomingWindow * 2 / 3;
     this.IsReceiver = true;
 }