Beispiel #1
0
        public virtual void Process([NotNull] ProcessIntegrationItemArgs args)
        {
            Assert.ArgumentNotNull(args, "args");

            Assert.IsNotNull(args.IntegrationItem, "args.IntegrationItem");

            if (args.IntegrationItem.Locking.IsLocked())
            {
                string message = string.Format(LogMessages.IntegrationItem0IsLockedAndCouldNotBeSynchronizedWithSharePointServer, args.IntegrationItem.Paths.FullPath);
                Log.Warn(message, this);

                args.AbortPipeline();
            }
        }
Beispiel #2
0
        public virtual void Process([NotNull] ProcessIntegrationItemArgs args)
        {
            Assert.ArgumentNotNull(args, "args");

            Assert.IsNotNull(args.IntegrationItemID, "args.IntegrationItemID");
            Assert.IsNotNull(args.SynchContext, "args.SynchContext");

            args.IntegrationItem = args.SynchContext.Database.GetItem(args.IntegrationItemID);
            if (args.IntegrationItem == null)
            {
                args.AbortPipeline();
                Log.Warn("Can't get item '{0}' from database '{1}'".FormatWith(args.IntegrationItemID, args.SynchContext.Database), this);
            }
        }