Exemple #1
0
 /// <summary>
 /// 更新搜索历史
 /// </summary>
 /// <param name="state">state</param>
 public void UpdateSearchHistory(UpdateSearchHistoryState state)
 {
     ManagedThreadPool.QueueUserWorkItem(new WaitCallback(SearchHistories.UpdateSearchHistory), state);
 }
Exemple #2
0
        /// <summary>
        /// 更新搜索历史
        /// </summary>
        /// <param name="state">UpdateSearchHistoryState类型对象</param>
        /// <returns></returns>
        public static void UpdateSearchHistory(object state)
        {
            UpdateSearchHistoryState updateSearchHistoryState = (UpdateSearchHistoryState)state;

            BrnShop.Data.SearchHistories.UpdateSearchHistory(updateSearchHistoryState.Uid, updateSearchHistoryState.Word, updateSearchHistoryState.UpdateTime);
        }