Example #1
0
        public void Refresh(WorkItemRefreshRequest request)
        {
            ThreadPool.QueueUserWorkItem(
                delegate
            {
                try
                {
                    //using (var context = new DataAccessContext())
                    //{
                    //    var broker = context.GetWorkItemBroker();

                    //    var dbList = broker.GetWorkItems(null, null, null);

                    //    // send in batches of 200
                    //    foreach (var batch in BatchItems(dbList, 200))
                    //    {
                    //        WorkItemPublishSubscribeHelper.PublishWorkItemsChanged(WorkItemsChangedEventType.Refresh, batch.Select(WorkItemDataHelper.FromWorkItem).ToList());
                    //    }
                    //}
                }
                catch (Exception e)
                {
                    var message          = "Failed to process WorkItem Update request.";
                    var exceptionMessage = String.Format("{0}\nDetail:{1}", message, e.Message);
                    Platform.Log(LogLevel.Error, e, exceptionMessage);
                    // Don't rethrow here, we're in a thread pool anyways.
                }
            });
        }
Example #2
0
 public void Refresh(WorkItemRefreshRequest request)
 {
 }
Example #3
0
 public void Refresh(WorkItemRefreshRequest request)
 {
     Channel.Refresh(request);
 }
 public void Refresh(WorkItemRefreshRequest request)
 {
 }