public static bool TryConnect(string username, string password) { GMailClient test; try { test = new GMailClient(username, password); test.UpdateContacts(); Connect(username, password); } catch (Exception) { Log.Error(ConnectionErrorMessage); return(false); } return(true); }
public static void UpdateContacts() { client.UpdateContacts(); }