Represents a change to the topology of a role.
Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)
Public Class RoleEnvironmentTopologyChange
Implements IEquatable(Of RoleEnvironmentTopologyChange)
The topology refers to the number of instances and the number of endpoints that are defined for a role. The number of instances for a role in a hosted service is configured in the ServiceConfiguration.cscfg file. The following XML example shows the configuration of the Instances element:
<?xml version-"1.0" encoding="utf-8"?>
<ServiceConfiguration name="MyService" xmln=http://schema.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration osFamily="1" osVersion="*">
<Instances count="2" />
For more information about defining the service model for a hosted service, see Setting Up a Hosted Service for Windows Azure.
At least one internal endpoint must be defined for a role in order to raise RoleEnvironmentTopologyChange. For more information about defining internal endpoints, see How to Define Internal Endpoints for a Role.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows Vista, Windows 7 and Windows Server 2008