Exemplo n.º 1
0
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="cluster">TBD</param>
 /// <param name="crdt">TBD</param>
 public LocalPNCounterDictionary(Cluster.Cluster cluster, PNCounterDictionary <TKey> crdt) : this(cluster.SelfUniqueAddress, crdt)
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="currentNode">TBD</param>
 /// <param name="crdt">TBD</param>
 internal LocalPNCounterDictionary(UniqueAddress currentNode, PNCounterDictionary <TKey> crdt) : this()
 {
     _currentNode = currentNode;
     _crdt        = crdt;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Merges data from provided <see cref="PNCounterDictionary{TKey}"/> into current CRDT,
 /// creating new immutable instance in a result.
 /// </summary>
 /// <param name="dictionary">TBD</param>
 /// <returns>TBD</returns>
 public LocalPNCounterDictionary <TKey> Merge(PNCounterDictionary <TKey> dictionary) =>
 new LocalPNCounterDictionary <TKey>(_currentNode, _crdt.Merge(dictionary));
Exemplo n.º 4
0
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="dictionary">TBD</param>
 public Surrogate(PNCounterDictionary <TKey> dictionary)
 {
     _dictionary = dictionary;
 }
 /// <summary>
 /// Creates an instance of an PNCounterDictionary scoped to a current cluster.
 /// </summary>
 /// <typeparam name="TKey">TBD</typeparam>
 /// <param name="cluster">TBD</param>
 /// <param name="dictionary">TBD</param>
 /// <returns>TBD</returns>
 public static LocalPNCounterDictionary <TKey> PNCounterDictionary <TKey>(this Cluster.Cluster cluster, PNCounterDictionary <TKey> dictionary) =>
 new LocalPNCounterDictionary <TKey>(cluster, dictionary);