예제 #1
0
 public CoreInteropPackageManager(
     ISharedPackageRepository sharedRepo,
     IDependencyResolver2 dependencyResolver,
     CoreInteropSourceRepository sourceRepo)
 {
     _sharedRepo        = sharedRepo;
     _sourceRepo        = sourceRepo;
     DependencyResolver = dependencyResolver;
 }
 public CoreInteropPackageManager(
     ISharedPackageRepository sharedRepo,
     IDependencyResolver2 dependencyResolver,
     CoreInteropSourceRepository sourceRepo)
 {
     _sharedRepo = sharedRepo;
     _sourceRepo = sourceRepo;
     DependencyResolver = dependencyResolver;
 }
        public CoreInteropProjectManager(
            InstallationTarget target, 
            SourceRepository activeSource,
            IDependencyResolver2 dependencyResolver)
        {
            // Get the required features from the target
            _sharedRepo = target.GetRequiredFeature<ISharedPackageRepository>();
            _refRepo = target.GetRequiredFeature<IProjectManager>().LocalRepository;
            _projectSystem = target.TryGetFeature<IProjectSystem>();
            _target = target;

            _sourceRepo = new CoreInteropSourceRepository(activeSource);
            _pacman = new CoreInteropPackageManager(
                _sharedRepo,
                dependencyResolver,
                _sourceRepo);
        }
        public CoreInteropProjectManager(
            InstallationTarget target,
            SourceRepository activeSource,
            IDependencyResolver2 dependencyResolver)
        {
            // Get the required features from the target
            _sharedRepo    = target.GetRequiredFeature <ISharedPackageRepository>();
            _refRepo       = target.GetRequiredFeature <IProjectManager>().LocalRepository;
            _projectSystem = target.TryGetFeature <IProjectSystem>();
            _target        = target;

            _sourceRepo = new CoreInteropSourceRepository(activeSource);
            _pacman     = new CoreInteropPackageManager(
                _sharedRepo,
                dependencyResolver,
                _sourceRepo);
        }