/// <summary> /// 更新搜索历史 /// </summary> /// <param name="state">state</param> public void UpdateSearchHistory(UpdateSearchHistoryState state) { ManagedThreadPool.QueueUserWorkItem(new WaitCallback(SearchHistories.UpdateSearchHistory), state); }
/// <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); }