DiffSeen() static private méthode

static private DiffSeen ( Gossip oldGossip, Gossip newGossip, UniqueAddress selfUniqueAddres ) : ImmutableList
oldGossip Gossip
newGossip Gossip
selfUniqueAddres UniqueAddress
Résultat ImmutableList
Exemple #1
0
 private void PublishDiff(Gossip oldGossip, Gossip newGossip, Action <object> pub)
 {
     foreach (var @event in ClusterEvent.DiffMemberEvents(oldGossip, newGossip))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffUnreachable(oldGossip, newGossip))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffReachable(oldGossip, newGossip))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffLeader(oldGossip, newGossip, _selfUniqueAddress))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffRolesLeader(oldGossip, newGossip, _selfUniqueAddress))
     {
         pub(@event);
     }
     // publish internal SeenState for testing purposes
     foreach (var @event in ClusterEvent.DiffSeen(oldGossip, newGossip, _selfUniqueAddress))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffReachability(oldGossip, newGossip))
     {
         pub(@event);
     }
 }
Exemple #2
0
 private void PublishDiff(MembershipState oldState, MembershipState newState, Action <object> pub)
 {
     foreach (var @event in ClusterEvent.DiffMemberEvents(oldState, newState))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffUnreachable(oldState, newState))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffReachable(oldState, newState))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffLeader(oldState, newState))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffRolesLeader(oldState, newState))
     {
         pub(@event);
     }
     // publish internal SeenState for testing purposes
     foreach (var @event in ClusterEvent.DiffSeen(oldState, newState))
     {
         pub(@event);
     }
     foreach (var @event in ClusterEvent.DiffReachability(oldState, newState))
     {
         pub(@event);
     }
 }