Пример #1
0
 public PackageSender(
     PackageLoader loader,
     PackageInfoFileNamer fileNamer
     )
 {
     FileNamer = fileNamer;
     Loader    = loader;
 }
Пример #2
0
        public void Construct(
            string workingDirectory,
            string packagesDirectory
            )
        {
            WorkingDirectory = workingDirectory;

            PackagesDirectory = packagesDirectory;

            var fileNamer = new PackageInfoFileNamer();

            Retriever = new PackageInstaller();

            Creator = new PackageCreator();

            FileFinder = new FileFinder();

            Loader = new PackageLoader();

            Builder = new PackageBuilder(
                Loader,
                new FileZipper(
                    FileFinder,
                    new DirectoryMover()
                    ),
                new PackageZipFileNamer()
                );


            Saver = new PackageSaver(
                fileNamer
                );

            Adder = new PackageFileAdder(
                FileFinder,
                Loader,
                Saver
                );

            Sender = new PackageSender(
                Loader,
                fileNamer
                );

            Remover = new PackageFileRemover();

            Scanner = new PackageFileScanner(
                FileFinder
                );

            Repositories = new RepositoryManager();

            Installers = new InstallManager();

            Versions = new VersionManager();
        }
Пример #3
0
 public PackageSaver()
 {
     FileNamer = new PackageInfoFileNamer();
 }
Пример #4
0
 public PackageSaver(
     PackageInfoFileNamer fileNamer
     )
 {
     FileNamer = fileNamer;
 }