C# 클래스 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.
파일 보기 프로젝트 열기: MRCollective/AzureWebFarm

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
DoLeaseOperation ( CloudBlob blob, string leaseId, LeaseAction action ) : void

메소드 상세

AcquireLease() 공개 정적인 메소드

public static AcquireLease ( this blob, int leaseLengthSeconds ) : string
blob this
leaseLengthSeconds int
리턴 string

ReleaseLease() 공개 정적인 메소드

public static ReleaseLease ( this blob, string leaseId ) : void
blob this
leaseId string
리턴 void

RenewLease() 공개 정적인 메소드

public static RenewLease ( this blob, string leaseId ) : void
blob this
leaseId string
리턴 void

SetMetadata() 공개 정적인 메소드

public static SetMetadata ( this blob, string leaseId ) : void
blob this
leaseId string
리턴 void

TryAcquireLease() 공개 정적인 메소드

public static TryAcquireLease ( this blob, int leaseLengthSeconds ) : string
blob this
leaseLengthSeconds int
리턴 string

TryReleaseLease() 공개 정적인 메소드

public static TryReleaseLease ( this blob, string leaseId ) : void
blob this
leaseId string
리턴 void