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);
            }
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        /// <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);
            }
        }