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);
}
}
source
share