Esempio n. 1
0
 public EstablishConnectionAsyncResult(AmqpChannelFactory.SharedAmqpLink sharedAmqpLink, AmqpChannelFactory.AmqpOutputChannel channel, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state)
 {
     this.channel        = channel;
     this.sharedAmqpLink = sharedAmqpLink;
     AmqpChannelFactory.AmqpOutputChannel.EstablishConnectionAsyncResult establishConnectionAsyncResult = this;
     establishConnectionAsyncResult.OnCompleting = (Action <AsyncResult, Exception>)Delegate.Combine(establishConnectionAsyncResult.OnCompleting, AmqpChannelFactory.AmqpOutputChannel.EstablishConnectionAsyncResult.onFinally);
 }
Esempio n. 2
0
 public OpenLinkAsyncResult(AmqpChannelFactory.SharedAmqpConnection sharedAmqpConnection, AmqpChannelFactory.SharedAmqpLink sharedAmqpLink, Uri via, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state)
 {
     this.sharedAmqpConnection = sharedAmqpConnection;
     this.sharedAmqpLink       = sharedAmqpLink;
     this.via = via;
     AmqpChannelFactory.SharedAmqpLink.OpenLinkAsyncResult openLinkAsyncResult = this;
     openLinkAsyncResult.OnCompleting = (Action <AsyncResult, Exception>)Delegate.Combine(openLinkAsyncResult.OnCompleting, AmqpChannelFactory.SharedAmqpLink.OpenLinkAsyncResult.onFinally);
 }
Esempio n. 3
0
 public AmqpOutputChannel(AmqpChannelFactory.SharedAmqpLink sharedAmqpLink, AmqpChannelFactory channelFactory, EndpointAddress address, Uri via) : base(channelFactory)
 {
     this.sharedAmqpLink     = sharedAmqpLink;
     this.RemoteAddress      = address;
     this.Via                = via;
     this.id                 = string.Concat(base.GetType().Name, Interlocked.Increment(ref AmqpChannelFactory.AmqpOutputChannel.instanceIdCounter));
     this.onAmqpObjectClosed = new EventHandler(this.OnAmqpObjectClosed);
 }