Ejemplo n.º 1
0
        public async Task <ActionResult <string> > Listener(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                name = "default";
            }

            await _configService.AddListener(name, "tms", x =>
            {
                Console.WriteLine($"Config is change, value is {x}");
            });

            return("OK");
        }