Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        public List <LoginStatisticItem> QueryUniqueLoginStatistic(QueryLoginStatisticCriteria criteria)
        {
            var da = new StatisticBiz();

            return(da.QueryUniqueLoginStatistic(criteria));
        }
Exemplo n.º 3
0
        public void BatchTraceEventLog(List <EventLog> eventLogs)
        {
            var biz = new StatisticBiz();

            biz.BatchInsertEventLog(eventLogs);
        }