C# Class Microsoft.Azure.WebJobs.Script.BlobLeaseManager

Inheritance: IDisposable
Afficher le fichier Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Méthodes publiques

Méthode Description
Create ( string accountConnectionString, System.TimeSpan leaseTimeout, string hostId, string instanceId, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : BlobLeaseManager
CreateAsync ( string accountConnectionString, System.TimeSpan leaseTimeout, string hostId, string instanceId, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : Task
Dispose ( ) : void

Private Methods

Méthode Description
AcquireOrRenewLeaseAsync ( ) : Task
BlobLeaseManager ( ICloudBlob lockBlob, System.TimeSpan leaseTimeout, string hostId, string instanceId, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter, System.TimeSpan renewalInterval = null ) : System
Dispose ( bool disposing ) : void
GetBlobName ( string hostId ) : string
GetLockBlobAsync ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient client, string blobName ) : Task
GetLockBlobAsync ( string accountConnectionString, string blobName ) : Task
OnHasLeaseChanged ( ) : void
ProcessLeaseError ( string reason ) : void
ProcessLeaseTimerTick ( object state ) : void
ResetLease ( ) : void
SetTimerInterval ( System.TimeSpan interval, System.TimeSpan dueTimeout = null ) : void
TryReleaseLeaseIfOwned ( ) : void

Method Details

Create() public static méthode

public static Create ( string accountConnectionString, System.TimeSpan leaseTimeout, string hostId, string instanceId, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : BlobLeaseManager
accountConnectionString string
leaseTimeout System.TimeSpan
hostId string
instanceId string
traceWriter Microsoft.Azure.WebJobs.Host.TraceWriter
Résultat BlobLeaseManager

CreateAsync() public static méthode

public static CreateAsync ( string accountConnectionString, System.TimeSpan leaseTimeout, string hostId, string instanceId, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : Task
accountConnectionString string
leaseTimeout System.TimeSpan
hostId string
instanceId string
traceWriter Microsoft.Azure.WebJobs.Host.TraceWriter
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void