public StoredEntrySnapshot(IEntrySnapshot <TId, TData> entrySnapshot) { Assert(entrySnapshot != null); DataVersion = entrySnapshot.DataVersion; LastWriteTime = entrySnapshot.LastWriteTime; Id = entrySnapshot.Id; Data = entrySnapshot.Data; }
public PendingOperation(long transactionId, IEntrySnapshot <TId, TData> originalData, DateTime operationTime) { Assert(originalData != null); TransactionId = transactionId; OriginalData = originalData; OperationTime = operationTime; }
private static StoredEntrySnapshot AsStoredEntrySnapshot(IEntrySnapshot <TId, TData> entrySnapshot) { if (entrySnapshot == null) { return(null); } if (entrySnapshot is StoredEntrySnapshot storedEntrySnapshot) { return(storedEntrySnapshot); } return(new StoredEntrySnapshot(entrySnapshot)); }