Candor.WindowsAzure.Storage.Table.CloudTableSequenceIdOptimisticSyncStore.GetData C# (CSharp) 메소드

GetData() 공개 메소드

Gets the current sequence value for a given table.
public GetData ( string tableName ) : OptimisticSyncData
tableName string
리턴 Candor.Data.OptimisticSyncData
        public OptimisticSyncData GetData(string tableName)
        {
            var sequence = SequenceTableProxy.Get(tableName.GetValidPartitionKey(), tableName.GetValidRowKey()) ??
                           CreateSequenceFromSchema(tableName);
            return new OptimisticSyncData
                {
                    TableName = tableName,
                    ConcurrencyKey = sequence.ETag,
                    Data = sequence.Entity.Properties[PropertyFinalCachedId].StringValue
                };
        }