Reputation: 100
I am working on Azure Worker Roles. I have a worker role which is scaled up to 5 instance. I want to identify which Instance processed the queue item. I know, I can use RoleEnvironment.Roles to get the list of the instances but not sure how to get the actual instance.
Thanks in advance.
Upvotes: 0
Views: 111
Reputation: 846
You are looking for
RoleEnvironment.CurrentRoleInstance.Role.Name
Upvotes: 1