コード例 #1
0
 private bool ValidInstaller(ComponentInstaller installer)
 {
     if (!CheckSelfDependency(installer))
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
ファイル: PatchBuilder.cs プロジェクト: onpoc/sensenet
        public IPatchInstanceBuilder Install(string version, string released, string description)
        {
            var patch = new ComponentInstaller
            {
                ComponentId = _component.ComponentId,
                Version     = new Version(0, 0)
            };

            patch.Version     = ParseVersion(version, patch);
            patch.ReleaseDate = ParseDate(released, patch);
            patch.Description = CheckDescription(description, patch);
            _patches.Add(patch);

            return(new ItemBuilder(patch, this));
        }
コード例 #3
0
 private bool HasDuplicates(ComponentInstaller installer, List <ISnPatch> candidates)
 {
     return(candidates.Count(patch => patch.Type == PackageType.Install &&
                             patch.ComponentId == installer.ComponentId) > 1);
 }