private void TraceLoginEventLog(string loginName) { ThreadPool.QueueUserWorkItem((obj) => { var biz = new StatisticBiz(); biz.InsertEventLog(new EventLog { Action = "Login", EventDate = DateTime.Now, IP = GetRealIP(obj as HttpRequest), UserID = loginName }); }, HttpContext.Current.Request); }
public List <LoginStatisticItem> QueryUniqueLoginStatistic(QueryLoginStatisticCriteria criteria) { var da = new StatisticBiz(); return(da.QueryUniqueLoginStatistic(criteria)); }
public void BatchTraceEventLog(List <EventLog> eventLogs) { var biz = new StatisticBiz(); biz.BatchInsertEventLog(eventLogs); }