Exemplo n.º 1
0
        public override bool LogRequest(WebRequest req)
        {
            using (LCSKDbDataContext db = new LCSKDbDataContext(connectionString))
            {
                LiveChat_LogAccess webrequest = new LiveChat_LogAccess();
                webrequest.DomainRequested  = req.DomainName;
                webrequest.PageRequested    = req.PageRequested;
                webrequest.Referrer         = req.Referrer;
                webrequest.RequestedTime    = DateTime.Now;
                webrequest.VisitorIP        = req.VisitorIp;
                webrequest.VisitorUserAgent = req.VisitorUserAgent.Length > 100 ? req.VisitorUserAgent.Substring(0, 100) : req.VisitorUserAgent;

                db.LiveChat_LogAccesses.InsertOnSubmit(webrequest);
                db.SubmitChanges();
                return(true);
            }
        }
Exemplo n.º 2
0
		public override bool LogRequest(WebRequest req)
		{
			using (LCSKDbDataContext db = new LCSKDbDataContext(connectionString))
			{
				LiveChat_LogAccess webrequest = new LiveChat_LogAccess();
				webrequest.DomainRequested = req.DomainName;
				webrequest.PageRequested = req.PageRequested;
				webrequest.Referrer = req.Referrer;
				webrequest.RequestedTime = DateTime.Now;
				webrequest.VisitorIP = req.VisitorIp;
				webrequest.VisitorUserAgent = req.VisitorUserAgent.Length > 100 ? req.VisitorUserAgent.Substring(0, 100) : req.VisitorUserAgent;

				db.LiveChat_LogAccesses.InsertOnSubmit(webrequest);
				db.SubmitChanges();
				return true;
			}
		}
Exemplo n.º 3
0
 partial void DeleteLiveChat_LogAccess(LiveChat_LogAccess instance);
Exemplo n.º 4
0
 partial void UpdateLiveChat_LogAccess(LiveChat_LogAccess instance);
Exemplo n.º 5
0
 partial void InsertLiveChat_LogAccess(LiveChat_LogAccess instance);
Exemplo n.º 6
0
 partial void DeleteLiveChat_LogAccess(LiveChat_LogAccess instance);
Exemplo n.º 7
0
 partial void UpdateLiveChat_LogAccess(LiveChat_LogAccess instance);
Exemplo n.º 8
0
 partial void InsertLiveChat_LogAccess(LiveChat_LogAccess instance);