public void QuickAdd(string applicationName, string errorClass, string errorFunction, ApplicationEvent.SeverityLevels severity, string description) { ApplicationEvent e = new ApplicationEvent(); e.ApplicationName = applicationName; e.Class = errorClass; e.Function = errorFunction; e.SeverityLevel = severity; e.Timestamp = DateTime.Now; e.Description = description; Add(e); }
public void QuickAdd(string applicationName, string errorClass, string errorFunction, ApplicationEvent.SeverityLevels severity, string description) { var e = new ApplicationEvent { ApplicationName = applicationName, Class = errorClass, Function = errorFunction, SeverityLevel = severity, Timestamp = DateTime.Now, Description = description }; Add(e); }
public List <ApplicationEvent> GetApplicationEventsBetweenDatesByApplicationBySeverity(DateTime StartDate, DateTime EndDate, string ApplicationName, ApplicationEvent.SeverityLevels Severity) { var applicationEvents = (from r in db.ApplicationEvents where r.Timestamp > StartDate && r.Timestamp <= EndDate && r.ApplicationName == ApplicationName && r.SeverityLevel == Severity select r).ToList(); return(applicationEvents); }
public void QuickAdd(string applicationName, string errorClass, string errorFunction, ApplicationEvent.SeverityLevels severity, string description) { ApplicationEvent applicationEvent = new ApplicationEvent { ApplicationName = applicationName, Timestamp = DateTime.Now, Class = errorClass, Description = description, Function = errorFunction, SeverityLevel = severity }; _db.ApplicationEvents.Add(applicationEvent); }
public List <ApplicationEvent> GetApplicationEventsBetweenDatesByApplicationBySeverity(DateTime StartDate, DateTime EndDate, string ApplicationName, ApplicationEvent.SeverityLevels Severity) { throw new NotImplementedException(); }