Ejemplo n.º 1
0
        public void Process(string pipeline, DbSyncPipelineArgs pipelineArgs)
        {
            if (pipeline.StartsWith("distributedDb."))
            {
                pipeline = pipeline.Replace("distributedDb.", "");
            }

            Log.Info("[DistributedDb] Pipeline Job " + pipeline + " Start", this);

            CorePipeline.Run("distributedDb." + pipeline, pipelineArgs);

            Log.Info("[DistributedDb] Pipeline Job  " + pipeline + " End", this);
        }
Ejemplo n.º 2
0
        public void StartJob(string sitecoreInstance, string pipeline)
        {
            Log.Info("[DistributedDb] Job " + pipeline + " Start", this);

            var pipelineArgs = new DbSyncPipelineArgs()
            {
                Server = sitecoreInstance
            };

            JobOptions options = new JobOptions("[DistributedDb] Job " + pipeline, "DistributedDb", sitecoreInstance, this, "Process", new object[] { pipeline, pipelineArgs });
            Job        job     = JobManager.Start(options);

            Log.Info("[DistributedDb] Job " + pipeline + " End", this);
        }