Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }