Ejemplo n.º 1
0
 public RecentPackageRepository(
     IPackageRepositoryFactory repositoryFactory,
     IPersistencePackageSettingsManager settingsManager)
     : this(ServiceLocator.GetInstance<DTE>(),
            repositoryFactory,
            ServiceLocator.GetInstance<IPackageSourceProvider>(),
            settingsManager,
            MachineCache.Default)
 {
 }
Ejemplo n.º 2
0
 public RecentPackageRepository(
     IPackageRepositoryFactory repositoryFactory,
     IPersistencePackageSettingsManager settingsManager)
     : this(ServiceLocator.GetInstance <DTE>(),
            repositoryFactory,
            ServiceLocator.GetInstance <IPackageSourceProvider>(),
            settingsManager,
            MachineCache.Default)
 {
 }
Ejemplo n.º 3
0
        public RecentPackagesRepository(
            DTE dte,
            IPackageRepositoryFactory repositoryFactory,
            IPackageSourceProvider packageSourceProvider,
            IPersistencePackageSettingsManager settingsManager)
        {
            _repositoryFactory = repositoryFactory;
            _settingsManager = settingsManager;
            _aggregatePackageSource = packageSourceProvider.ActivePackageSource;

            if (dte != null) {
                _dteEvents = dte.Events.DTEEvents;
                _dteEvents.OnBeginShutdown += OnBeginShutdown;
            }
        }
Ejemplo n.º 4
0
        public RecentPackagesRepository(
            DTE dte,
            IPackageRepositoryFactory repositoryFactory,
            IPackageSourceProvider packageSourceProvider,
            IPersistencePackageSettingsManager settingsManager)
        {
            _repositoryFactory      = repositoryFactory;
            _settingsManager        = settingsManager;
            _aggregatePackageSource = packageSourceProvider.ActivePackageSource;

            if (dte != null)
            {
                _dteEvents = dte.Events.DTEEvents;
                _dteEvents.OnBeginShutdown += OnBeginShutdown;
            }
        }
Ejemplo n.º 5
0
        internal RecentPackageRepository(
            DTE dte,
            IPackageRepositoryFactory repositoryFactory,
            IPackageSourceProvider packageSourceProvider,
            IPersistencePackageSettingsManager settingsManager,
            IPackageRepository cacheRepository)
        {
            _packageSourceProvider = packageSourceProvider;
            _repositoryFactory     = repositoryFactory;
            _settingsManager       = settingsManager;
            _cacheRepository       = cacheRepository;

            if (dte != null)
            {
                _dteEvents = dte.Events.DTEEvents;
                _dteEvents.OnBeginShutdown += OnBeginShutdown;
            }
        }
Ejemplo n.º 6
0
        internal RecentPackageRepository(
            DTE dte,
            IPackageRepositoryFactory repositoryFactory,
            IPackageSourceProvider packageSourceProvider,
            IPersistencePackageSettingsManager settingsManager,
            IPackageRepository cacheRepository)
        {

            _packageSourceProvider = packageSourceProvider;
            _repositoryFactory = repositoryFactory;
            _settingsManager = settingsManager;
            _cacheRepository = cacheRepository;

            if (dte != null)
            {
                _dteEvents = dte.Events.DTEEvents;
                _dteEvents.OnBeginShutdown += OnBeginShutdown;
            }
        }