Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="packageDataInstallation"></param>
 /// <param name="packageFileInstallation"></param>
 /// <param name="parser"></param>
 /// <param name="packageActionRunner"></param>
 /// <param name="applicationRootFolder">
 /// The root folder of the application
 /// </param>
 public PackageInstallation(PackageDataInstallation packageDataInstallation, PackageFileInstallation packageFileInstallation, CompiledPackageXmlParser parser, IPackageActionRunner packageActionRunner,
                            DirectoryInfo applicationRootFolder)
 {
     _packageExtraction       = new PackageExtraction();
     _packageFileInstallation = packageFileInstallation ?? throw new ArgumentNullException(nameof(packageFileInstallation));
     _packageDataInstallation = packageDataInstallation ?? throw new ArgumentNullException(nameof(packageDataInstallation));
     _parser = parser ?? throw new ArgumentNullException(nameof(parser));
     _packageActionRunner   = packageActionRunner ?? throw new ArgumentNullException(nameof(packageActionRunner));
     _applicationRootFolder = applicationRootFolder ?? throw new ArgumentNullException(nameof(applicationRootFolder));
 }
Exemplo n.º 2
0
 public PackageFileInstallation(CompiledPackageXmlParser parser, IProfilingLogger logger)
 {
     _parser            = parser;
     _logger            = logger;
     _packageExtraction = new PackageExtraction();
 }