Exemplo n.º 1
0
		public static bool LogRequest(WebRequest req)
		{
			// Load the provider
			LoadProvider();

			return _provider.LogRequest(req);
		}
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
		public abstract bool LogRequest(WebRequest req);