/// <summary> /// Ingests items /// </summary> /// <param name="args"> /// The args. /// </param> public override void Process(MediaItemExportArgs args) { Assert.ArgumentNotNull(args, "args"); Assert.ArgumentNotNull(args.Operation, "args.Operation"); try { IExportExecuter executer = MediaFrameworkContext.GetExportExecuter(args.Operation.Item); if (executer != null) { executer.Export(args.Operation); } else { args.AbortPipeline(); } } catch (Exception ex) { LogHelper.Error("Sync failed.", this, ex); args.AbortPipeline(); } }
/// <summary> /// The run. /// </summary> /// <param name="args"> /// The args. /// </param> public static void Run(MediaItemExportArgs args) { Assert.ArgumentNotNull(args, "args"); CorePipeline.Run("mediaFramework.mediaItemExport", args); }