Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackagesController"/> class.
 /// </summary>
 /// <param name="packagesService">
 /// The packages service.
 /// </param>
 /// <param name="formsAuthentication">
 /// The forms authentication.
 /// </param>
 public PackagesController(
     IPackagesService packagesService,
     IFormsAuthentication formsAuthentication)
     : base(formsAuthentication)
 {
     this.packagesService = packagesService;
 }
Ejemplo n.º 2
0
        public void CleanUpController()
        {
            this.automapperConfig = null;

            this.packages = null;
            this.issues = null;
            this.users = null;

            this.controller.Dispose();
            this.controller = null;
        }
Ejemplo n.º 3
0
        public void InitializeController()
        {
            this.automapperConfig = new AutoMapperConfig();
            this.automapperConfig.Execute(typeof(HomeController).Assembly);

            this.packages = Services.GetPackagesService();
            this.issues = Services.GetIssuesService();
            this.users = Services.GetUsersService();

            this.controller = new HomeController(this.packages, this.issues, this.users);
        }
Ejemplo n.º 4
0
 public PackagesController(
     IPackagesService packages,
     IDistributionsService distros,
     IRepositoriesService repositories,
     IArchitecturesService architectures,
     ILicensesService licenses)
 {
     this.packages = packages;
     this.distros = distros;
     this.repositories = repositories;
     this.architectures = architectures;
     this.licenses = licenses;
 }
Ejemplo n.º 5
0
        public PackageManager(IPackagesService packagesService, IPackageVersionService packageVersionService, IPackageService packageService)
        {
            InitializeComponent();

            _packageService = packageService;
            _packagesService = packagesService;
            _packageVersionService = packageVersionService;
            _packageVersionService.VersionChanged += VersionChangedHandler;
            _packagesService.RunFinshed += PackagesServiceRunFinished;
            _packageService.LineChanged += PackageServiceLineChanged;
            _packageService.RunFinshed += PackageServiceRunFinished;
            ClearStatus();
        }
Ejemplo n.º 6
0
 public FilesController(
     IPackagesService packages,
     IScreenshotsService screenshots,
     IUsersService users,
     IPackageSaver packageSaver,
     IScreenshotSaver screenshotSaver,
     IAvatarSaver avatarSaver)
 {
     this.packages = packages;
     this.screenshots = screenshots;
     this.packageSaver = packageSaver;
     this.screenshotSaver = screenshotSaver;
     this.avatarSaver = avatarSaver;
 }
        public PackageManager(IPackagesService packagesService, IPackageVersionService packageVersionService, IPackageService packageService)
        {
            InitializeComponent();

            _packageService = packageService;
            _packagesService = packagesService;
            _packageVersionService = packageVersionService;
            _packageVersionService.VersionChanged += VersionChangedHandler;
            _packagesService.RunFinshed += PackagesServiceRunFinished;
            _packageService.LineChanged += PackageServiceLineChanged;
            _packageService.RunFinshed += PackageServiceRunFinished;
            ClearStatus();
            PackageGrid.Focus();
            UpdateInstallUninstallButtonLabel();
            QueryInstalledPackages();
        }
Ejemplo n.º 8
0
 public PackagesController(
     IPackagesService packages,
     IArchitecturesService architectures,
     ILicensesService licenses,
     IRepositoriesService repositories,
     IDistributionsService distros,
     IScreenshotsService screenshots,
     IDependenciesService dependencies)
 {
     this.packages = packages;
     this.architectures = architectures;
     this.licenses = licenses;
     this.repositories = repositories;
     this.distros = distros;
     this.screenshots = screenshots;
     this.dependencies = dependencies;
 }
Ejemplo n.º 9
0
 public PackageManager(PackagesService packagesService)
 {
     _packagesService = packagesService;
     ClearStatus();
 }
Ejemplo n.º 10
0
 public HomeController(IPackagesService packages, IIssuesService issues, IUsersService users)
 {
     this.packages = packages;
     this.issues = issues;
     this.users = users;
 }
Ejemplo n.º 11
0
 public DependenciesService(IRepository<Dependency> dependencies, IPackagesService packages)
 {
     this.dependencies = dependencies;
     this.packages = packages;
 }
Ejemplo n.º 12
0
 public CommentsController(IPackagesService packages, ISanitizer sanitizer)
 {
     this.packages = packages;
     this.sanitizer = sanitizer;
 }