Пример #1
0
        static void Main(string[] args)
        {
            var    service       = new UsuarioService.UsuarioServiceClient();
            var    Address       = service.Endpoint.Address.ToString();
            string AddressZuated = "https://serviceshom.compline.com.br/SecurityService/UsuarioaService.svc";

            var check = new CheckService(Address);

            check.StatusServico();

            if (check.Status == HttpStatusCode.OK)
            {
                var tarefa = new Tarefa();
                tarefa.Run();
            }
            else
            {
                Console.WriteLine($@"Status do serviço: {check.Status}");
                Console.ReadKey();
            }
        }