A Microsoft Azure Cloud Service has to detect and respond to changes to its service configuration. Two types of changes are exposed to the service: changes to the
ConfigurationSettings element of the
ServiceConfiguration.cscfg service configuration file and changes to the service topology. The latter refers to changes in the number of instances of the various roles that comprise the service.
RoleEnvironment class exposes six events to which a role can register a callback method to be notified about these changes:
Changing event is raised before the change is applied to the role. For configuration ...