BlobExecutionLease 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.

Represents an execution lease stored in a Windows Azure Storage Blob that ensures that at any time, only one instance of something is executing.

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)

Syntax

[ConfigurationElementTypeAttribute(typeof(BuiltInExecutionLeaseData))]
public class BlobExecutionLease : IExecutionLease, 
    IDisposable
'Declaration
<ConfigurationElementTypeAttribute(GetType(BuiltInExecutionLeaseData))> _
Public Class BlobExecutionLease _
    Implements IExecutionLease, IDisposable
[ConfigurationElementTypeAttribute(typeof(BuiltInExecutionLeaseData))]
public ref class BlobExecutionLease : IExecutionLease, 
    IDisposable

Remarks

In the case of the Autoscaling Application Block, if your application has a large number of roles and a large number of autoscaling rules, you may decide to run multiple instances of the Autoscaling Application Block. If this is the case, you must ensure that at any time, only one instance of the metronome is evaluating the autoscaling rules, otherwise you may submit multiple, duplicate scaling requests. This is where the execution lease come in handy.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.BlobExecutionLease

See Also

BlobExecutionLease Members

Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling Namespace