private static void SynchronizeTree(SynchronizeTreeArgs pipelineArgs)
 {
     try
     {
         PipelineRunner.AssertRun(PipelineNames.SynchronizeTree, pipelineArgs);
     }
     catch (Exception exception)
     {
         LogMessage(
             exception,
             "Sharepoint Provider can't process tree.{1}{0}",
             LogMessageFormatter.FormatIntegrationConfigItemID02(pipelineArgs.Context),
             Environment.NewLine);
     }
 }
        public static bool UpdateIntegrationItem([NotNull] ProcessIntegrationItemArgs pipelineArgs)
        {
            Assert.ArgumentNotNull(pipelineArgs, "pipelineArgs");

            try
            {
                PipelineRunner.AssertRun(PipelineNames.UpdateIntegrationItem, pipelineArgs);
                return(true);
            }
            catch (Exception exception)
            {
                LogMessage(exception, LogMessages.Text0IntegrationItem1HasBeenFailed, "Updating", pipelineArgs.IntegrationItemID);
            }

            return(false);
        }
        public static bool DeleteSharepointItem([NotNull] ProcessSharepointItemArgs pipelineArgs)
        {
            Assert.ArgumentNotNull(pipelineArgs, "pipelineArgs");

            try
            {
                PipelineRunner.AssertRun(PipelineNames.DeleteSharepointItem, pipelineArgs);
                return(true);
            }
            catch (Exception exception)
            {
                LogMessage(exception, LogMessages.Text0SharePointItem1HasBeenFailed, "Deleting", pipelineArgs.SharepointItemID);
            }

            return(false);
        }
        public static bool CreateSharepointItem([NotNull] ProcessSharepointItemArgs pipelineArgs)
        {
            Assert.ArgumentNotNull(pipelineArgs, "pipelineArgs");

            try
            {
                PipelineRunner.AssertRun(PipelineNames.CreateSharepointItem, pipelineArgs);
                return(true);
            }
            catch (Exception exception)
            {
                LogMessage(exception, LogMessages.Text0SharePointItem1HasBeenFailed, "Creating", LogMessageFormatter.FormatText0Item1(pipelineArgs.SynchContext.IntegrationConfigData, pipelineArgs.SourceIntegrationItemName));
            }

            return(false);
        }