Skip to content

Instantly share code, notes, and snippets.

@antonmoiseev
Created August 25, 2010 14:29
Show Gist options
  • Select an option

  • Save antonmoiseev/549612 to your computer and use it in GitHub Desktop.

Select an option

Save antonmoiseev/549612 to your computer and use it in GitHub Desktop.
Kiln kiln;
bool success = Kiln.TryAuthenticate(server, user, password, out kiln);
// Then check success
if (success) {
// Do some stuff...
}
// Or instead check Kiln instance
if (kiln != null) {
// Do other stuff...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment