Beispiel #1
0
        public async Task <ActionResult <string> > Deregister()
        {
            await _namingService.DeregisterInstance("tms_order_v1", new Instance()
            {
                Ip          = "192.168.2.1",
                Port        = 5000,
                Weight      = 1,
                ClusterName = "hz",
                ServiceName = "tms_order_v1"
            });

            await _namingService.DeregisterInstance("tms_order_v2", "tms", new Instance()
            {
                Ip          = "192.168.2.2",
                Port        = 5001,
                Weight      = 2,
                ClusterName = "hz",
                ServiceName = "tms_order_v2"
            });

            await _namingService.DeregisterInstance("tms_order_v3", "192.168.2.3", 5002);

            await _namingService.DeregisterInstance("tms_order_v4", "192.168.2.4", 5003, "hz");

            await _namingService.DeregisterInstance("tms_order_v5", "tms", "192.168.2.5", 5004);

            await _namingService.DeregisterInstance("tms_order_v6", "tms", "192.168.2.6", 5005, "hz");

            return("deregisster");
        }