Beispiel #1
0
 private AmqpMessageReceiver(AmqpMessagingFactory messagingFactory, string entityName, MessagingEntityType?entityType, string sessionId, bool sessionReceiver, Microsoft.ServiceBus.RetryPolicy retryPolicy, ReceiveMode receiveMode, Microsoft.ServiceBus.Messaging.Filter filter) : base(messagingFactory, retryPolicy, receiveMode, filter)
 {
     this.receiveLink        = new FaultTolerantObject <ReceivingAmqpLink>(this, new Action <ReceivingAmqpLink>(this.CloseLink), new Func <TimeSpan, AsyncCallback, object, IAsyncResult>(this.BeginCreateLink), new Func <IAsyncResult, ReceivingAmqpLink>(this.EndCreateLink));
     this.messagingFactory   = messagingFactory;
     this.entityName         = entityName;
     this.EntityType         = entityType;
     this.sessionId          = sessionId;
     this.sessionReceiver    = sessionReceiver;
     this.PrefetchCount      = this.messagingFactory.PrefetchCount;
     this.lockedMessages     = new ConcurrentDictionary <Guid, ArraySegment <byte> >();
     this.clientLinkManager  = new ActiveClientLinkManager(this.messagingFactory);
     this.batchFlushInterval = this.messagingFactory.TransportSettings.BatchFlushInterval;
 }
 public SbmpVolatileTopicClient(SbmpMessagingFactory factory, string path, string clientId, Microsoft.ServiceBus.RetryPolicy retryPolicy, Microsoft.ServiceBus.Messaging.Filter filter) : base(factory, path, clientId, retryPolicy, filter)
 {
     this.ControlMessageCreator = new Lazy <SbmpMessageCreator>(new Func <SbmpMessageCreator>(this.InitializeControlLink));
 }
Beispiel #3
0
 public AmqpMessageReceiver(AmqpMessagingFactory messagingFactory, string entityName, MessagingEntityType?entityType, Microsoft.ServiceBus.RetryPolicy retryPolicy, ReceiveMode receiveMode, Microsoft.ServiceBus.Messaging.Filter filter) : this(messagingFactory, entityName, entityType, null, false, retryPolicy, receiveMode, filter)
 {
 }
Beispiel #4
0
 public AmqpVolatileTopicClient(AmqpMessagingFactory factory, string path, string clientId, Microsoft.ServiceBus.RetryPolicy retryPolicy, Microsoft.ServiceBus.Messaging.Filter filter) : base(factory, path, clientId, retryPolicy, filter)
 {
     this.messagingFactory = factory;
 }