Esempio n. 1
0
        /// <summary>
        /// The set current state.
        /// </summary>
        /// <param name="stateRecordNumber">
        /// The state record number.
        /// </param>
        /// <param name="data">
        /// The data.
        /// </param>
        Task IStateProvider2.SetCurrentStateAsync(long stateRecordNumber, OperationData data)
        {
            var count  = data?.Count ?? 0;
            var length = data?.Sum(_ => _.Count) ?? 0;

            Trace.TraceInformation(
                "[" + this.partitionId + "] " + "SetCurrentState({0}, [{1} operations, {2}b])",
                stateRecordNumber,
                count,
                length);

            /*
             * indexex: LSN, row key + partition key
             */

            return(Task.FromResult(0));
        }