How to detect role examples in Azure?

In the code below, only one instance of the instance is printed per instance, although I am running 4 instances. Is this a mistake in the design structure, or how should it be?

public override void Run()
{
    foreach (RoleInstance roleInst in RoleEnvironment.CurrentRoleInstance.Role.Instances)
    {
        Trace.WriteLine("Instance ID: " + roleInst.Id);
    }
}
+3
source share
1 answer

For all role instances, you must have at least one internal endpoint.

+4
source

Source: https://habr.com/ru/post/1744322/


All Articles