Example #1
0
        public async Task <ActionResult <string> > GetAllInstance()
        {
            await _namingService.RegisterInstance("tms_order", "192.168.2.1", 5000);

            await _namingService.RegisterInstance("tms_order", "192.168.2.2", 5001);

            await _namingService.RegisterInstance("tms_order", "192.168.2.3", 5002);

            await _namingService.RegisterInstance("tms_order", "tms", "192.168.2.4", 5003);

            var instance = await _namingService.GetAllInstances("tms_order");

            instance = await _namingService.GetAllInstances("tms_inquiry");

            instance = await _namingService.GetAllInstances("tms_order", "tms");

            instance = await _namingService.GetAllInstances("tms_order", "test");

            instance = await _namingService.GetAllInstances("tms_order", true);

            //instance = await _namingService.GetAllInstances("tms_order", false);
            instance = await _namingService.GetAllInstances("tms_order", "tms", false);

            //instance = await _namingService.GetAllInstances("tms_order", "tms", true);
            instance = await _namingService.GetAllInstances("tms_order", new List <string>() { "test" });;
            instance = await _namingService.GetAllInstances("tms_order", new List <string>() { "test" }, false);

            //instance = await _namingService.GetAllInstances("tms_order", "tms", new List<string>() { "test" }, true);
            instance = await _namingService.GetAllInstances("tms_order", "tms", new List <string>() { "test" }, false);

            return("getAllInstance");
        }