C# 클래스 AzureWebFarm.Helpers.AutoRenewLease

Helper library to maintain a lease while in a using block. Attempts to autorenew a 90 second lease every 40 seconds (customisable) rather than indefinitely, meaning the lease isn't locked forever if the instance crashes. Based on https://github.com/smarx/WazStorageExtensions pending a pull request we have sent to this project.
상속: IDisposable
파일 보기 프로젝트 열기: MRCollective/AzureWebFarm 1 사용 예제들

공개 메소드들

메소드 설명
AutoRenewLease ( ILoggerFactory loggerFactory, LoggerLevel logLevel, CloudBlob blob, int renewLeaseSeconds = 40, int leaseLengthSeconds = 90 ) : System
Dispose ( ) : void

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

AutoRenewLease() 공개 메소드

public AutoRenewLease ( ILoggerFactory loggerFactory, LoggerLevel logLevel, CloudBlob blob, int renewLeaseSeconds = 40, int leaseLengthSeconds = 90 ) : System
loggerFactory ILoggerFactory
logLevel LoggerLevel
blob Microsoft.WindowsAzure.StorageClient.CloudBlob
renewLeaseSeconds int
leaseLengthSeconds int
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void