Giter Club home page Giter Club logo

Comments (4)

github-actions avatar github-actions commented on June 27, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

from azure-sdk-for-net.

jsquire avatar jsquire commented on June 27, 2024

Hi @kingsznhone. Thanks for reaching out and we regret that you're experiencing difficulties. Because Service Bus uses a string-based fully qualified namespace rather than a URI to identify namespace locations, both the connection name and FQNS are string values. As a result, it is not possible to just overload AddServiceBusClient and a new name is needed for the FQNS form.

The method that you're looking for is AddServiceBusClientWithNamespace, which allows you to pass the fully qualified namespace name of the Service Bus resource and authenticate via credential.

services.AddAzureClients(clientBuilder =>
{
    clientBuilder.AddServiceBusClientWithNamespace("<your_namespace>.servicebus.windows.net");
}

More context and discussion can be found in Dependency injection with the Azure SDK for .NET.

from azure-sdk-for-net.

github-actions avatar github-actions commented on June 27, 2024

Hi @kingsznhone. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

from azure-sdk-for-net.

kingsznhone avatar kingsznhone commented on June 27, 2024

Hi @kingsznhone. Thanks for reaching out and we regret that you're experiencing difficulties. Because Service Bus uses a string-based fully qualified namespace rather than a URI to identify namespace locations, both the connection name and FQNS are string values. As a result, it is not possible to just overload AddServiceBusClient and a new name is needed for the FQNS form.

The method that you're looking for is AddServiceBusClientWithNamespace, which allows you to pass the fully qualified namespace name of the Service Bus resource and authenticate via credential.

services.AddAzureClients(clientBuilder =>
{
    clientBuilder.AddServiceBusClientWithNamespace("<your_namespace>.servicebus.windows.net");
}

More context and discussion can be found in Dependency injection with the Azure SDK for .NET.

Thanks for your explaination. I'll have a try.

from azure-sdk-for-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.