CanalSharp.Protocol by stulzq,WithLin,CanalSharp

<PackageReference Include="CanalSharp.Protocol" Version="0.3.3" />

 ClientIdentity

public class ClientIdentity
using System; namespace CanalSharp.Protocol { [Serializable] public class ClientIdentity { public string Destination { get; set; } public short ClientId { get; set; } public string Filter { get; set; } public ClientIdentity() { } public ClientIdentity(string destination, short clientId) { Destination = destination; ClientId = clientId; } public ClientIdentity(string destination, short clientId, string filter) { Destination = destination; ClientId = clientId; Filter = filter; } public bool HasFilter() { if (Filter != null) return string.IsNullOrEmpty(Filter); return false; } public override int GetHashCode() { int num = 1; num = 31 * num + ClientId; return 31 * num + ((Destination != null) ? Destination.GetHashCode() : 0); } public override bool Equals(object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj is ClientIdentity)) return false; ClientIdentity clientIdentity = (ClientIdentity)obj; if (ClientId != clientIdentity.ClientId) return false; if (Destination == null) { if (clientIdentity.Destination != null) return false; } else if (!Destination.Equals(clientIdentity.Destination)) { return false; } return true; } } }