public InstallUploadPackageCommand(IPackageRepository repository, ITempPackager tempPackager, IInstallationRecorder installationRecorder, IPublishService publishService)
 {
     _repository = repository;
     _tempPackager = tempPackager;
     _installationRecorder = installationRecorder;
     _publishService = publishService;
 }
Пример #2
0
        public InstallerModule(IPackageRepository repository, IAuthoriser authoriser, ITempPackager tempPackager, IInstallationRecorder installationRecorder)
            : base(authoriser, "/services")
        {
            _repository = repository;
            _tempPackager = tempPackager;
            _installationRecorder = installationRecorder;

            Post["/package/install/fileupload"] = InstallUploadPackage;

            Post["/package/install"] = InstallPackage;

            Get["/package/latestversion"] = LatestVersion;
        }
Пример #3
0
        public InstallerModule(IPackageRepository repository, IAuthoriser authoriser, ITempPackager tempPackager, IInstallationRecorder installationRecorder)
            : base("/services")
        {
            _repository = repository;
            _authoriser = authoriser;
            _tempPackager = tempPackager;
            _installationRecorder = installationRecorder;

            Before += AuthoriseRequest; 
            
            Before += ctx =>
            {
                ctx.Items.Add(StartTime, DateTime.UtcNow);
                return null;
            };

            After += AddProcessingTimeToResponse;

            Post["/package/install/fileupload"] = InstallUploadPackage;

            Post["/package/install"] = InstallPackage;

            Get["/package/latestversion"] = LatestVersion;
        }
 public LatestVersionCommand(IInstallationRecorder installationRecorder)
 {
     _installationRecorder = installationRecorder;
 }
 public LatestVersionCommand(IInstallationRecorder installationRecorder)
 {
     _installationRecorder = installationRecorder;
 }
Пример #6
0
        public InstallerModule(IPackageRepository repository, IAuthoriser authoriser, ITempPackager tempPackager, IInstallationRecorder installationRecorder)
            : base(authoriser, "/services")
        {
            _repository           = repository;
            _tempPackager         = tempPackager;
            _installationRecorder = installationRecorder;

            Post["/package/install/fileupload"] = InstallUploadPackage;

            Post["/package/install"] = InstallPackage;

            Get["/package/latestversion"] = LatestVersion;
        }
 public InstallUploadPackageCommand(IPackageRepository repository, ITempPackager tempPackager, IInstallationRecorder installationRecorder)
 {
     _repository = repository;
     _tempPackager = tempPackager;
     _installationRecorder = installationRecorder;
 }
 public InstallPackageCommand(IPackageRepository repository, IInstallationRecorder installationRecorder)
 {
     _repository = repository;
     _installationRecorder = installationRecorder;
 }
 public InstallPackageCommand(IPackageRepository repository, IInstallationRecorder installationRecorder)
 {
     _repository           = repository;
     _installationRecorder = installationRecorder;
 }
Пример #10
0
 public InstallUploadPackageCommand(IPackageRepository repository, ITempPackager tempPackager, IInstallationRecorder installationRecorder)
 {
     _repository           = repository;
     _tempPackager         = tempPackager;
     _installationRecorder = installationRecorder;
 }
 public InstallUploadPackageCommand(IPackageRepository repository, ITempPackager tempPackager, IInstallationRecorder installationRecorder, IPublishService publishService)
 {
     _repository           = repository;
     _tempPackager         = tempPackager;
     _installationRecorder = installationRecorder;
     _publishService       = publishService;
 }