C# Class TastyDomainDriven.Azure.AzureBlob.FileIndexLock

Mostrar archivo Open project: jaceenet/TastyDomainDriven Class Usage Examples

Public Properties

Property Type Description
Hashes BlobIndex>.Dictionary
OrderedIndex List

Public Methods

Method Description
AppendWrite ( FileRecord record, string filename ) : System.Threading.Tasks.Task
AppendWriteNoLease ( FileRecord record, string filename ) : System.Threading.Tasks.Task
CreateIfNotExist ( ) : System.Threading.Tasks.Task
EnsureLease ( ) : System.Threading.Tasks.Task
FileIndexLock ( Microsoft.WindowsAzure.Storage.CloudStorageAccount storage, string container, string filename, System.TimeSpan leaseTime = null ) : System

FileIndex for keeping order of events...

GetLeaseAndRead ( bool shouldexist = false ) : Task
ReadIndex ( ) : System.Threading.Tasks.Task
ReadLast ( ) : BlobIndex
Release ( ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetLease ( bool shouldexist = false ) : Task

Method Details

AppendWrite() public method

public AppendWrite ( FileRecord record, string filename ) : System.Threading.Tasks.Task
record TastyDomainDriven.File.FileRecord
filename string
return System.Threading.Tasks.Task

AppendWriteNoLease() public method

public AppendWriteNoLease ( FileRecord record, string filename ) : System.Threading.Tasks.Task
record TastyDomainDriven.File.FileRecord
filename string
return System.Threading.Tasks.Task

CreateIfNotExist() public method

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

EnsureLease() public method

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

FileIndexLock() public method

FileIndex for keeping order of events...
public FileIndexLock ( Microsoft.WindowsAzure.Storage.CloudStorageAccount storage, string container, string filename, System.TimeSpan leaseTime = null ) : System
storage Microsoft.WindowsAzure.Storage.CloudStorageAccount Connection
container string Azure blob container
filename string
leaseTime System.TimeSpan You can acquire leases for 15s up to 60s or you can acquire a lease for an infinite time period.
return System

GetLeaseAndRead() public method

public GetLeaseAndRead ( bool shouldexist = false ) : Task
shouldexist bool
return Task

ReadIndex() public method

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

ReadLast() public method

public ReadLast ( ) : BlobIndex
return BlobIndex

Release() public method

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

Property Details

Hashes public_oe property

public Dictionary Hashes
return BlobIndex>.Dictionary

OrderedIndex public_oe property

public List OrderedIndex
return List