private static void ReIndexForMedia(IMedia sender, bool isMediaPublished) { var actions = DeferedActions.Get(ApplicationContext.Current.ScopeProvider); if (actions != null) { actions.Add(new DeferedReIndexForMedia(sender, isMediaPublished)); } else { DeferedReIndexForMedia.Execute(sender, isMediaPublished); } }
private void ReIndexForMedia(IMedia sender, bool isPublished) { var actions = DeferedActions.Get(_scopeProvider); if (actions != null) { actions.Add(new DeferedReIndexForMedia(this, sender, isPublished)); } else { DeferedReIndexForMedia.Execute(this, sender, isPublished); } }
/// <inheritdoc /> public void ReIndexForMedia(IMedia sender, bool isPublished) { var actions = DeferedActions.Get(_scopeProvider); if (actions != null) { actions.Add(new DeferedReIndexForMedia(_backgroundTaskQueue, this, sender, isPublished)); } else { DeferedReIndexForMedia.Execute(_backgroundTaskQueue, this, sender, isPublished); } }