How to setup Azure Relay with WCF?

Jeffrey-2116 20 Reputation points
2024-02-01T14:47:55.1366667+00:00

Hello,

Currently the WindowsAzure.ServiceBus NuGet package is marked as deprecated. I am trying to use the suggested alternative (Azure.Messaging.ServiceBus or Microsoft.Azure.Relay) but these seem to not work when in combination with a WCF service.

I tried looking for documentation and I have found this resource: https://learn.microsoft.com/en-us/azure/azure-relay/service-bus-dotnet-hybrid-app-using-service-bus-relay, but this resource still uses WindowsAzure.ServiceBus.

So question is, is there a way to migrate to these new alternatives without removing the WCF aspect? Or do I just accept my fate and keep using the 'unofficial' deprecated package?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
Developer technologies .NET Other
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 29,261 Reputation points
    2024-02-12T03:52:33.1233333+00:00

    @Jeffrey-2116 WindowsAzure.ServiceBus is NOT deprecated for usage with Relay. It is only deprecated for use with Service Bus and Event Hubs. I know the statement at NuGet Gallery | WindowsAzure.ServiceBus 7.0.1 is NOT clear, and I will work on fixing that. But is that where you're getting their deprecation information from? please clarify.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.