示例#1
0
 public DeltaCD(int transactionId, CollectionDescription addCollectionDescription, CollectionDescription updateCollectionDescription, CollectionDescription removeCollectionDescription)
 {
     TransactionId               = transactionId;
     AddCollectionDescription    = addCollectionDescription;
     UpdateCollectionDescription = updateCollectionDescription;
     RemoveCollectionDescription = removeCollectionDescription;
 }
        public DeltaCD ReceiveValues(Tuple <Code, Value> incoomming)
        {
            valuesCount++;

            var property = PackToDumpingProperty(incoomming);

            WaitingValues[property.Code] = property;
            Logger.Instance.Log($"DumpingBuffer received: {incoomming.Item1} {incoomming.Item2}");

            if (valuesCount % 10 == 0)
            {
                Description = new CollectionDescription();
                FindDataSet(out var saveForLaterAdding1, out var saveForLaterAdding2);

                AddToCdIfPossible(ref saveForLaterAdding1, ref saveForLaterAdding2);

                return(CheckAndSend());
            }
            else
            {
                return(null);
            }
        }
示例#3
0
 public DeltaCD()
 {
     AddCollectionDescription    = null;
     UpdateCollectionDescription = null;
     RemoveCollectionDescription = null;
 }