public TwinReceivingLinkHandler(IReceivingAmqpLink link,
                                 Uri requestUri,
                                 IDictionary <string, string> boundVariables,
                                 IMessageConverter <AmqpMessage> messageConverter)
     : base(link, requestUri, boundVariables, messageConverter)
 {
 }
示例#2
0
 protected ReceivingLinkHandler(IReceivingAmqpLink link, Uri requestUri, IDictionary <string, string> boundVariables,
                                IMessageConverter <AmqpMessage> messageConverter)
     : base(link, requestUri, boundVariables, messageConverter)
 {
     Preconditions.CheckArgument(link.IsReceiver, $"Link {requestUri} cannot receive");
     this.ReceivingLink        = link;
     this.sendMessageProcessor = new ActionBlock <AmqpMessage>(s => this.ProcessMessageAsync(s));
 }
示例#3
0
 public TwinReceivingLinkHandler(
     IIdentity identity,
     IReceivingAmqpLink link,
     Uri requestUri,
     IDictionary <string, string> boundVariables, IConnectionHandler connectionHandler,
     IMessageConverter <AmqpMessage> messageConverter)
     : base(identity, link, requestUri, boundVariables, connectionHandler, messageConverter)
 {
 }
 public EventsLinkHandler(
     IIdentity identity,
     IReceivingAmqpLink link,
     Uri requestUri,
     IDictionary <string, string> boundVariables,
     IConnectionHandler connectionHandler,
     IMessageConverter <AmqpMessage> messageConverter,
     IProductInfoStore productInfoStore)
     : base(identity, link, requestUri, boundVariables, connectionHandler, messageConverter, productInfoStore)
 {
 }
示例#5
0
 protected ReceivingLinkHandler(
     IIdentity identity,
     IReceivingAmqpLink link,
     Uri requestUri,
     IDictionary<string, string> boundVariables,
     IConnectionHandler connectionHandler,
     IMessageConverter<AmqpMessage> messageConverter,
     IMetadataStore metadataStore)
     : base(identity, link, requestUri, boundVariables, connectionHandler, messageConverter, metadataStore)
 {
     Preconditions.CheckArgument(link.IsReceiver, $"Link {requestUri} cannot receive");
     this.ReceivingLink = link;
     this.sendMessageProcessor = new ActionBlock<AmqpMessage>(this.ProcessMessageAsync);
 }
示例#6
0
 public void RegisterLink(IAmqpLink link)
 {
     if (link.IsReceiver)
     {
         lock (this.receivingLinkSyncLock)
         {
             this.receivingLink = (EdgeReceivingAmqpLink)link;
             this.receivingLink.RegisterMessageListener(this.OnMessageReceived);
         }
     }
     else
     {
         lock (this.sendingLinkSyncLock)
         {
             this.sendingLink = (EdgeSendingAmqpLink)link;
         }
     }
     Events.LinkRegistered(link);
 }