/// <summary>
        /// Ingests items
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        public override void Process(MediaCleanupArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.Items, "args.Items");

            foreach (Item item in args.Items)
            {
                if (item == null)
                {
                    continue;
                }

                MediaCleanupItemPipeline.Run(new MediaCleanupItemArgs {
                    Item = item
                });
            }
        }
        /// <summary>
        /// Ingests items
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        public override void Process(MediaCleanupArgs args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.AccountItem, "args.AccountItem");
            Assert.ArgumentNotNullOrEmpty(args.CleanupExecuterName, "args.CleanupExecuterName");

            ICleanupExecuter executer = MediaFrameworkContext.GetCleanupExecuter(args.CleanupExecuterName);

            if (executer != null)
            {
                args.Items = executer.GetScopeItems(args.AccountItem).ToList();
            }

            if (args.Items == null || args.Items.Count == 0)
            {
                args.AbortPipeline();
            }
        }
 /// <summary>
 /// The run.
 /// </summary>
 /// <param name="args">
 /// The args.
 /// </param>
 public static void Run(MediaCleanupArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     CorePipeline.Run("mediaFramework.mediaCleanup", args);
 }