문제

We have an Azure application, which has a worker role and a web role, and the worker role has to know the web role address exposed to outside. That's because, web role include some Web API that worker role can use, so we need to know the exactly url address of web role.

Any way to get that?

도움이 되었습니까?

해결책

You should look into Role, RoleInstance, RoleInstanceEndpoint classes in Microsoft.WindowsAzure.ServiceRuntime Namespace. Using these you should be able to find the IP address and Port of all the role instances.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top