C# Class AzureWebFarm.Helpers.LeaseBlobExtensions

Set of extension methods to add lease functionality until we can upgrade to the newer Azure storage libraries. Based on https://github.com/smarx/WazStorageExtensions pending a pull request we have sent to this project.
Afficher le fichier Open project: MRCollective/AzureWebFarm

Méthodes publiques

Méthode Description
AcquireLease ( this blob, int leaseLengthSeconds ) : string
ReleaseLease ( this blob, string leaseId ) : void
RenewLease ( this blob, string leaseId ) : void
SetMetadata ( this blob, string leaseId ) : void
TryAcquireLease ( this blob, int leaseLengthSeconds ) : string
TryReleaseLease ( this blob, string leaseId ) : void

Private Methods

Méthode Description
DoLeaseOperation ( CloudBlob blob, string leaseId, LeaseAction action ) : void

Method Details

AcquireLease() public static méthode

public static AcquireLease ( this blob, int leaseLengthSeconds ) : string
blob this
leaseLengthSeconds int
Résultat string

ReleaseLease() public static méthode

public static ReleaseLease ( this blob, string leaseId ) : void
blob this
leaseId string
Résultat void

RenewLease() public static méthode

public static RenewLease ( this blob, string leaseId ) : void
blob this
leaseId string
Résultat void

SetMetadata() public static méthode

public static SetMetadata ( this blob, string leaseId ) : void
blob this
leaseId string
Résultat void

TryAcquireLease() public static méthode

public static TryAcquireLease ( this blob, int leaseLengthSeconds ) : string
blob this
leaseLengthSeconds int
Résultat string

TryReleaseLease() public static méthode

public static TryReleaseLease ( this blob, string leaseId ) : void
blob this
leaseId string
Résultat void