Exemple #1
0
            public int Compare(object x, object y)
            {
                LogElementCheckMail mailX = x as LogElementCheckMail;
                LogElementCheckMail mailY = y as LogElementCheckMail;

                return(mailY.LogDateTime.CompareTo(mailX.LogDateTime));
            }
Exemple #2
0
        /// <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);
        }