Metronome Class

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information about Transient Fault Handling, see Transient Fault Handling.

The metronome runs activities on a regular schedule and it is responsible for launching all of the activities that the Autoscaling Application Block performs.

Namespace: Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling
Assembly: Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling (in Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.dll) Version: 5.0.1118.0 (5.0.1118.0)

public sealed class Metronome : IMetronome, 

Each activity can have its own schedule: for example, one activity could run every 10 seconds, while another runs every 5 minutes. To ensure that only one instance of the Metronome can run at any given time in any role instance in your Windows Azure environment, it can uses a lease on a Windows Azure blob (see IExecutionLease).