C# Class Etg.Yams.Azure.Lease.SelfRenewableBlobLease

A lease that doesn't expire. TODO: Investigate if an alternative exists in Azure and get rid of this class if possible.
Inheritance: IBlobLease
显示文件 Open project: Microsoft/Yams

Private Properties

Property Type Description
DisableTimer System.Threading.Tasks.Task
GetKey string
RenewLease System.Threading.Tasks.Task

Public Methods

Method Description
Dispose ( ) : void
ReleaseLease ( ) : System.Threading.Tasks.Task
SelfRenewableBlobLease ( ICloudBlob blob ) : System
TryAcquireLease ( ) : Task

Private Methods

Method Description
DisableTimer ( ) : System.Threading.Tasks.Task
GetKey ( ICloudBlob blob ) : string
RenewLease ( ICloudBlob blob, string leaseId ) : System.Threading.Tasks.Task

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ReleaseLease() public method

public ReleaseLease ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SelfRenewableBlobLease() public method

public SelfRenewableBlobLease ( ICloudBlob blob ) : System
blob ICloudBlob
return System

TryAcquireLease() public method

public TryAcquireLease ( ) : Task
return Task