public IChannel CreateChannel(bool transacted, AcknowledgeMode acknowledgeMode, int prefetchHigh, int prefetchLow)
 {
     CheckNotClosed();
     if (ChannelLimitReached())
     {
         throw new ChannelLimitReachedException(_maximumChannelCount);
     }
     else
     {
         CreateChannelFailoverSupport operation =
             new CreateChannelFailoverSupport(this, transacted, acknowledgeMode, prefetchHigh, prefetchLow);
         return((IChannel)operation.execute(this));
     }
 }
Ejemplo n.º 2
0
 public IChannel CreateChannel(bool transacted, AcknowledgeMode acknowledgeMode, int prefetchHigh, int prefetchLow)
 {
     CheckNotClosed();
     if (ChannelLimitReached())
     {
         throw new ChannelLimitReachedException(_maximumChannelCount);
     }
     else
     {
         CreateChannelFailoverSupport operation =
             new CreateChannelFailoverSupport(this, transacted, acknowledgeMode, prefetchHigh, prefetchLow);
         return (IChannel)operation.execute(this);
     }
 }