Пример #1
0
        private void ResolveSyncType()
        {
            string subtype = this.XmlNode.SelectSingleNode("step-type/apply-rules-subtype")?.InnerText;

            if (subtype == "reevaluate-flow-connectors")
            {
                this.internalType = RunStepType.FullSynchronization;
            }
            else if (subtype == "apply-pending")
            {
                this.internalType = RunStepType.DeltaSynchronization;
            }
        }
Пример #2
0
        private void ResolveFullImportSyncType()
        {
            this.internalType = RunStepType.FullImportFullSynchronization;

            foreach (XmlNode n2 in this.XmlNode.SelectNodes("step-type/import-subtype"))
            {
                if (n2.InnerText == "to-file")
                {
                    this.DropAuditFile = true;
                    return;
                }
            }
        }
Пример #3
0
        private void ResolveExportType()
        {
            foreach (XmlNode n2 in this.XmlNode.SelectNodes("step-type/export-subtype"))
            {
                if (n2.InnerText == "to-file")
                {
                    this.DropAuditFile = true;
                }
                else if (n2.InnerText == "resume-from-file")
                {
                    this.ResumeFromAuditFile = true;
                }
            }

            this.DropAuditFileOnly = this.DropAuditFile && !this.ResumeFromAuditFile;

            if (this.ResumeFromAuditFile && this.DropAuditFile)
            {
                this.ResumeFromAuditFile = false;
            }

            this.internalType = RunStepType.Export;
        }
Пример #4
0
        private void ResolveDeltaImportType()
        {
            bool toCS = false;

            foreach (XmlNode n2 in this.XmlNode.SelectNodes("step-type/import-subtype"))
            {
                if (n2.InnerText == "to-cs")
                {
                    toCS = true;
                }
                else if (n2.InnerText == "to-file")
                {
                    this.DropAuditFile = true;
                }
                else if (n2.InnerText == "resume-from-file")
                {
                    this.ResumeFromAuditFile = true;
                }
            }

            this.DropAuditFileOnly = this.DropAuditFile && !this.ResumeFromAuditFile;

            if (this.ResumeFromAuditFile && this.DropAuditFile)
            {
                this.ResumeFromAuditFile = false;
            }

            if (toCS)
            {
                this.internalType = RunStepType.DeltaImport;
            }
            else
            {
                this.internalType = RunStepType.DeltaImportDeltaSynchronization;
            }
        }