public void SaveOperation(OperationData data)
 {
     throw new NotImplementedException();
 }
Beispiel #2
0
 public void SaveOperation(OperationData data)
 {
     s_log.Info($"Saving Operation Data: {data}");
     m_session.Save(data);
     m_session.Flush();
 }
        public void ReportOperation(string identifier, string dateTimeStringFormat, string operation)
        {
            DateTime dateTime;
            bool isValidParse;

            isValidParse = (DateTime.TryParseExact(dateTimeStringFormat,
                           DATE_TIME_FORMAT,
                           System.Globalization.CultureInfo.InvariantCulture,
                           System.Globalization.DateTimeStyles.None,
                           out dateTime));
            if (!isValidParse)
                return;

            OperationData data = new OperationData() { Identifier = identifier, Time = dateTime, Operation = operation };
            m_dbService.SaveOperation(data);
        }