コード例 #1
0
 public AssemblyUpdaterCheckAssemblyPublishConfigsTask(AssemblyUpdateCandidate a) : base(a)
 {
     Arguments = APIUpdaterAssemblyHelper.ArgumentsForCheckingForUpdaterConfigsOn(a.Path);
 }
コード例 #2
0
 public AssemblyUpdaterUpdateTask(AssemblyUpdateCandidate a) : base(a)
 {
     OutputPath = Path.GetTempFileName();
     Arguments  = APIUpdaterAssemblyHelper.ArgumentsForUpdateAssembly(a.Path, OutputPath, a.UpdateConfigSources);
 }
コード例 #3
0
        public AssemblyUpdaterTask(AssemblyUpdateCandidate a)
        {
            _candidate = a;

            Event = new ManualResetEvent(false);
        }
コード例 #4
0
        private static bool IsAssemblyInPackageOrExtensionFolder(AssemblyUpdateCandidate candidate)
        {
            var isUnityExtension = candidate.Path.IsUnityExtension();

            return(isUnityExtension || candidate.Path.IsInPackage());
        }
コード例 #5
0
        private static void AddDependentAssembliesToUpdateList(HashSet <AssemblyUpdateCandidate> assembliesToUpdate, AssemblyDependencyGraph depGraph, AssemblyUpdateCandidate imported)
        {
            var dependents         = depGraph.GetDependentsOf(imported.Name);
            var candidatesToUpdate = dependents.Select(assemblyName => CandidateForUpdatingFrom(assemblyName, depGraph));

            foreach (var candidate in candidatesToUpdate.Where(c => c != null))
            {
                assembliesToUpdate.Add(candidate);
            }
        }
コード例 #6
0
 private static bool IsAssemblyInPackageFolder(AssemblyUpdateCandidate candidate)
 {
     return(candidate.Path.IsInPackage());
 }