< Summary

Class:Microsoft.Azure.ServiceBus.Amqp.AmqpSendReceiveLinkCreator
Assembly:Microsoft.Azure.ServiceBus
File(s):C:\Git\azure-sdk-for-net\sdk\servicebus\Microsoft.Azure.ServiceBus\src\Amqp\AmqpSendReceiveLinkCreator.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:33
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
OnCreateAmqpLink(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\servicebus\Microsoft.Azure.ServiceBus\src\Amqp\AmqpSendReceiveLinkCreator.cs

#LineLine coverage
 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
 4namespace Microsoft.Azure.ServiceBus.Amqp
 5{
 6    using System;
 7    using Microsoft.Azure.Amqp;
 8    using Microsoft.Azure.ServiceBus.Primitives;
 9
 10    internal class AmqpSendReceiveLinkCreator : AmqpLinkCreator
 11    {
 12        public AmqpSendReceiveLinkCreator(string entityPath, ServiceBusConnection serviceBusConnection, Uri endpointAddr
 013            : base(entityPath, serviceBusConnection, endpointAddress, audience, requiredClaims, cbsTokenProvider, linkSe
 14        {
 015        }
 16
 17        protected override AmqpObject OnCreateAmqpLink(AmqpConnection connection, AmqpLinkSettings linkSettings, AmqpSes
 18        {
 19            AmqpLink amqpLink;
 020            if (linkSettings.IsReceiver())
 21            {
 022                amqpLink = new ReceivingAmqpLink(linkSettings);
 23            }
 24            else
 25            {
 026                amqpLink = new SendingAmqpLink(linkSettings);
 27            }
 028            linkSettings.LinkName = $"{connection.Settings.ContainerId};{connection.Identifier}:{amqpSession.Identifier}
 029            amqpLink.AttachTo(amqpSession);
 030            return amqpLink;
 31        }
 32    }
 33}

Methods/Properties

.ctor(...)
OnCreateAmqpLink(...)