Пример #1
0
 public void LogSingleClick(string alias, string productID, string customerID, ClickRecord.pageType pageType, DateTime date)
 {
     ClientLog client;
     bool found = GetClient(alias, out client, false); //don't create if the client doesn't exist
     if (found)
         client.Clicks.Add(productID, customerID, pageType, date);
 }
Пример #2
0
        public void Add(string productID, string customerID, ClickRecord.pageType pagetype, DateTime date)
        {
            if ((customerID == null) || (customerID.Length < 1)) return; //must have ID to make click usable
            if (pagetype == ClickRecord.pageType.PDP2) return; //ignore second tout on the same page

            ClickRecord item = new ClickRecord(productID, customerID, pagetype, date);

            lock (m_clickDataLock) //must lock so new item is not added while list is being flushed
            {
                m_clickStream.Add(item);
            }
        }
Пример #3
0
 public void LogSingleClick(string alias, string productID, string customerID, ClickRecord.pageType pageType)
 {
     LogSingleClick(alias, productID, customerID, pageType, DateTime.Now);
 }