Пример #1
0
        private void ConvergentUpdate(CRDT.Application.Convergent.Set.LWW_OptimizedSetService <TestType> sourceReplica, TestType value, long timestamp, List <CRDT.Application.Convergent.Set.LWW_OptimizedSetService <TestType> > downstreamReplicas)
        {
            sourceReplica.LocalAssign(value, timestamp);

            foreach (var downstreamReplica in downstreamReplicas)
            {
                downstreamReplica.Merge(sourceReplica.State);
            }
        }