public TwinReceivingLinkHandler(IReceivingAmqpLink link, Uri requestUri, IDictionary <string, string> boundVariables, IMessageConverter <AmqpMessage> messageConverter) : base(link, requestUri, boundVariables, messageConverter) { }
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)); }
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) { }
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); }
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); }