Skip to content

Instantly share code, notes, and snippets.

@danielAlbuquerque
Last active August 27, 2015 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielAlbuquerque/70916b742b1d2123e5f4 to your computer and use it in GitHub Desktop.
Save danielAlbuquerque/70916b742b1d2123e5f4 to your computer and use it in GitHub Desktop.
Exception on Connect
static void Main(string[] args)
{
try{
GTFrotaIntegracaoClient client = new GTFrotaIntegracaoClient();
if (client.Autenticar("JSANTANA", "123"))
Console.WriteLine("Acesso autorizado");
else
Console.WriteLine("ACesso negado");
}catch(Exception ex){
Console.WriteLine(ex.Message);
}
finally
{
Console.ReadKey();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment