private void AddLog(log logInMemory) { using (var unitOfWork = _unitOfWorkFactory.Create()) { _logCommand.Insert(logInMemory); unitOfWork.Commit(); } }
public void Fire(string message) { var now = DateTime.Now; _logCommand.Insert(new log() { hostname = _hostname, action = message, date = now.ToString(DateConstants.EventDateFormat), time = now.ToString(DateConstants.EventTimeFormat) }); }