コード例 #1
0
ファイル: RunStep.cs プロジェクト: Jvcamp/miis-client
        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
ファイル: RunStep.cs プロジェクト: Jvcamp/miis-client
        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
ファイル: RunStep.cs プロジェクト: Jvcamp/miis-client
        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
ファイル: RunStep.cs プロジェクト: Jvcamp/miis-client
        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;
            }
        }