Пример #1
0
 public AmqpMessageSender(AmqpMessagingFactory factory, string entityName, MessagingEntityType?entityType, Microsoft.ServiceBus.RetryPolicy retryPolicy) : base(factory, retryPolicy)
 {
     this.sendLink           = new FaultTolerantObject <SendingAmqpLink>(this, new Action <SendingAmqpLink>(this.CloseLink), new Func <TimeSpan, AsyncCallback, object, IAsyncResult>(this.BeginCreateLink), new Func <IAsyncResult, SendingAmqpLink>(this.EndCreateLink));
     this.messagingFactory   = factory;
     this.entityName         = entityName;
     this.EntityType         = entityType;
     this.clientLinkManager  = new ActiveClientLinkManager(this.messagingFactory);
     this.batchFlushInterval = this.messagingFactory.TransportSettings.BatchFlushInterval;
 }
 public CreateAsyncResult(FaultTolerantObject <T> parent, TimeSpan timeout, AsyncCallback callback, object state) : base(FaultTolerantObject <T> .CreateInstanceTimeout(timeout), callback, state)
 {
     this.parent = parent;
     base.Start();
 }