private static void CheckConnection(ConnectionSettings settings, PluginProfileErrorCollection errors) { using (IEmailClient client = new MailBeePop3EmailClient(settings)) { client.CheckConnection(errors); client.Disconnect(); } }
public void CheckConnection() { var client = new MailBeePop3EmailClient(_settings); client.CheckConnection(_errors); }