InvincibleInDN
InvincibleInDN

Reputation: 100

Identifying which Azure WorkRole Instance is executing the Queue?

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

Answers (1)

curiousgeek
curiousgeek

Reputation: 846

You are looking for

RoleEnvironment.CurrentRoleInstance.Role.Name

Upvotes: 1

Related Questions