private void HandleAck(object sender, TransportAckEventArgs args) { var seq = args.Message.SequenceNumber; var hasCallback = _seqCallbacks.TryGetValue(seq, out var callback); CleanupSeq(seq); if (hasCallback) { callback(); } }
private void HandleAck(object sender, TransportAckEventArgs args) { var member = _membership.GetFromHost(args.Remote); if (member == null) { return; } if (member.State != SwimMemberState.Suspect) { return; } _transport.SendAsync(new[] { new UpdateMessage(member), }, member.Host); }