how to call one service from another service using azure service bus relay

405 Views Asked by At

We are using WCF services with Azure service bus.

I referred this link: https://azure.microsoft.com/en-in/documentation/articles/service-bus-dotnet-hybrid-app-using-service-bus-relay/

I have following scenarios:

  1. I have created Service1 which is directly consumed by client (Within the same namespace with path servicePath1). For example: sb://MyNamespace.servicebus.windows.net/servicePath1

  2. I have created Service2 which is directly consumed by client (Within the same namespace with path servicePath2). For example: sb://MyNamespace.servicebus.windows.net/servicePath2

Service1 and Service2 are also together consumed by client.

I had to consume Service2 within Service1 or vice versa (as per business need)and I achieved this by considering Service1 as client for Service2.

It is working fine but I wanted to know better way to achieve this.

Please guide or share pointers.

0

There are 0 best solutions below