Exemplo n.º 1
0
        private bool RegisterService(string serviceName, string tags, string serviceAddress, int servicePort, string healthCheckAddress = "", int healthCheckInterval = 60)
        {
            bool result = ConsulClientSDK.RegsterService(ConsulConfigurator.Instance.ConsulAgentUrl, serviceName, tags, serviceAddress, servicePort, healthCheckInterval, healthCheckAddress, string.Empty).Result;

            return(result);
        }