示例#1
0
        private static void startTheEnvironment(IList <LogEntry> list, IEnvironment environment, IPackageLog log, params Action <IInstaller, IPackageLog>[] actions)
        {
            try
            {
                var installers = environment.StartUp(log);

                // This needs to happen regardless, but we want these logs put in before
                // logs for the installers, so we don't do it in the finally{}
                addPackagingLogEntries(list);

                executeInstallers(list, installers, actions);
            }
            catch (Exception ex)
            {
                addPackagingLogEntries(list);
                log.MarkFailure(ex.ToString());
            }
            finally
            {
                list.Add(LogEntry.FromPackageLog(environment, log));
                environment.SafeDispose();
            }
        }
示例#2
0
 public static void Add(this IList <LogEntry> list, object target, PackageRegistryLog log)
 {
     list.Add(LogEntry.FromPackageLog(target, log));
 }