public int Compare(object x, object y) { LogElementCheckMail mailX = x as LogElementCheckMail; LogElementCheckMail mailY = y as LogElementCheckMail; return(mailY.LogDateTime.CompareTo(mailX.LogDateTime)); }
/// <summary> /// Scrittura log /// </summary> /// <param name="logElement"></param> public void LogElement(LogElementCheckMail logElement) { string logPath = this.GetLogFolder(logElement.CodiceRegistro, logElement.MailRegistro); if (!Directory.Exists(logPath)) { Directory.CreateDirectory(logPath); } this.SerializeContent(logPath, logElement.CheckResponse); }