| | | 1 | | // Copyright (c) Microsoft. All rights reserved. |
| | | 2 | | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| | | 3 | | |
| | | 4 | | namespace Microsoft.Azure.ServiceBus.Amqp |
| | | 5 | | { |
| | | 6 | | using System; |
| | | 7 | | using Microsoft.Azure.Amqp; |
| | | 8 | | using Microsoft.Azure.ServiceBus.Primitives; |
| | | 9 | | |
| | | 10 | | internal class AmqpRequestResponseLinkCreator : AmqpLinkCreator |
| | | 11 | | { |
| | | 12 | | readonly string entityPath; |
| | | 13 | | |
| | | 14 | | public AmqpRequestResponseLinkCreator(string entityPath, ServiceBusConnection serviceBusConnection, Uri endpoint |
| | 0 | 15 | | : base(entityPath, serviceBusConnection, endpointAddress, audience, requiredClaims, cbsTokenProvider, linkSe |
| | | 16 | | { |
| | 0 | 17 | | this.entityPath = entityPath; |
| | 0 | 18 | | } |
| | | 19 | | |
| | | 20 | | protected override AmqpObject OnCreateAmqpLink(AmqpConnection connection, AmqpLinkSettings linkSettings, AmqpSes |
| | | 21 | | { |
| | 0 | 22 | | AmqpObject link = new RequestResponseAmqpLink(AmqpClientConstants.EntityTypeManagement, amqpSession, this.en |
| | 0 | 23 | | linkSettings.LinkName = $"{connection.Settings.ContainerId};{connection.Identifier}:{amqpSession.Identifier} |
| | 0 | 24 | | return link; |
| | | 25 | | } |
| | | 26 | | } |
| | | 27 | | } |