Stage() публичный Метод

public Stage ( DeploymentStager stager, System.Xml.Linq.XElement xmlElement ) : void
stager DeploymentStager
xmlElement System.Xml.Linq.XElement
Результат void
        public void Run()
        {
            // Load the imput file.
            XDocument       InputDoc  = XDocument.Load(InputFilename);
            XDocument       PatchDoc  = XDocument.Load(PatchFilename);
            List <XElement> resources = PatchDoc.Root.Element("files").Elements().ToList();

            for (int i = 0; i < resources.Count; i++)
            {
                string             filepath = "";
                DependencyResource resource = new DependencyResource(resources[i], filepath);

                // Find the record in the patch.
                XElement        patchElement = null;
                List <XElement> patchFiles   = PatchDoc.Root.Element("files").Elements().ToList();
                for (int j = 0; j < patchFiles.Count; j++)
                {
                    if (patchFiles[j].Name.ToString().Equals(resource.name))
                    {
                        patchElement = patchFiles[i];
                        break;
                    }
                }

                // Stage the differences.
                resource.Stage(this, patchElement);
            }

            // Save the patch.
            PatchDoc.Save(PatchFilename);
        }
        public void Run()
        {
            // Load the imput file.
            XDocument InputDoc = XDocument.Load(InputFilename);
            XDocument PatchDoc = XDocument.Load(PatchFilename);
            List<XElement> resources = PatchDoc.Root.Element("files").Elements().ToList();
            for (int i = 0; i < resources.Count; i++)
            {
                string filepath = "";
                DependencyResource resource = new DependencyResource(resources[i], filepath);

                // Find the record in the patch.
                XElement patchElement = null;
                List<XElement> patchFiles = PatchDoc.Root.Element("files").Elements().ToList();
                for (int j = 0; j < patchFiles.Count; j++)
                {
                    if (patchFiles[j].Name.ToString().Equals(resource.name))
                    {
                        patchElement = patchFiles[i];
                        break;
                    }
                }

                // Stage the differences.
                resource.Stage(this, patchElement);
            }

            // Save the patch.
            PatchDoc.Save(PatchFilename);
        }