Esempio n. 1
0
        public static void FromDNS()
        {
            var endpoint = new DnsEndPoint("localhost", 3262);
            var id       = ClusterMemberId.FromEndPoint(endpoint).ToString();

            True(ClusterMemberId.TryParse(id, out var actual));
            Equal(ClusterMemberId.FromEndPoint(endpoint), actual);
        }
Esempio n. 2
0
        public static void FromUDS()
        {
            var endpoint = new UnixDomainSocketEndPoint("/path");
            var id       = ClusterMemberId.FromEndPoint(endpoint).ToString();

            True(ClusterMemberId.TryParse(id, out var actual));
            Equal(ClusterMemberId.FromEndPoint(endpoint), actual);
        }
Esempio n. 3
0
        public static void FromIP()
        {
            var endpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3262);
            var id       = ClusterMemberId.FromEndPoint(endpoint).ToString();

            True(ClusterMemberId.TryParse(id, out var actual));
            Equal(ClusterMemberId.FromEndPoint(endpoint), actual);
        }