IExecutionLease Interface
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. |
Defines an execution lease that guarantee that only one instance of something is currently 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
public interface IExecutionLease : IDisposable
'Declaration
Public Interface IExecutionLease _
Inherits IDisposable
public interface class 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.
See Also
Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling Namespace