private static STT.Task ExecuteCentralizedActivityAsync(IndexingActivityBase activity, CancellationToken cancellationToken) { SnTrace.Index.Write("ExecuteCentralizedActivity: #{0}", activity.Id); CentralizedIndexingActivityQueue.ExecuteActivity(activity); return(activity.WaitForCompleteAsync(cancellationToken)); }
private static void ExecuteCentralizedActivity(IndexingActivityBase activity) { SnTrace.Index.Write("ExecuteCentralizedActivity: #{0}", activity.Id); CentralizedIndexingActivityQueue.ExecuteActivity(activity); activity.WaitForComplete(); }