C# Class Candor.WindowsAzure.Storage.Table.CloudTableSequenceIdOptimisticSyncStore

An optimistic sync store for sequence Ids that persists to an Azure table.
Inheritance: ISequenceIdOptimisticSyncStore
Show file Open project: michael-lang/candor-common

Private Properties

Property Type Description
CreateSequenceFromSchema TableEntityProxy

Public Methods

Method Description
GetData ( string tableName ) : OptimisticSyncData

Gets the current sequence value for a given table.

GetSequenceIdStore ( string tableName ) : SequenceIdStore

Gets the sequence for a given table.

GetSequenceIdStores ( ) : IEnumerable

Gets all sequence definitions available.

InsertOrUpdate ( SequenceIdSchema sequence ) : void

Saves the specified sequence schema, overwriting the existing schema if applicable. The schema does not contain the current latest sequence value.

TryWrite ( OptimisticSyncData syncData ) : bool

Tries to write the current sequence value for a table.

Private Methods

Method Description
CreateSequenceFromSchema ( string tableName ) : TableEntityProxy

Method Details

GetData() public method

Gets the current sequence value for a given table.
public GetData ( string tableName ) : OptimisticSyncData
tableName string
return Candor.Data.OptimisticSyncData

GetSequenceIdStore() public method

Gets the sequence for a given table.
public GetSequenceIdStore ( string tableName ) : SequenceIdStore
tableName string
return Candor.Data.SequenceIdStore

GetSequenceIdStores() public method

Gets all sequence definitions available.
public GetSequenceIdStores ( ) : IEnumerable
return IEnumerable

InsertOrUpdate() public method

Saves the specified sequence schema, overwriting the existing schema if applicable. The schema does not contain the current latest sequence value.
public InsertOrUpdate ( SequenceIdSchema sequence ) : void
sequence Candor.Data.SequenceIdSchema
return void

TryWrite() public method

Tries to write the current sequence value for a table.
public TryWrite ( OptimisticSyncData syncData ) : bool
syncData Candor.Data.OptimisticSyncData The table name and current value for the sequence. Also an ETag representing /// the latest reserved value retrieved. The ETag must match the curent stored value for the update/write /// to succeed.
return bool