public TestableCheckForUpdatesTaskRunner (
			ITaskFactory taskFactory,
			IPackageManagementProgressMonitorFactory progressMonitorFactory,
			IPackageManagementEvents packageManagementEvents)
			: base (taskFactory, progressMonitorFactory, packageManagementEvents)
		{
		}
		public PackageUpdatesViewModel(
			IPackageManagementService packageManagementService,
			IMessageReporter messageReporter,
			ITaskFactory taskFactory)
			: base(packageManagementService, messageReporter, taskFactory)
		{
			this.packageManagementService = packageManagementService;
		}
 public CommandExecutor(IWordBankLogger logger, IWordBankSettings settings, ITaskFactory taskFactory)
 {
     _logger = logger;
     _settings = settings;
     _taskFactory = taskFactory;
     AddCommand(new ImportCommand(_logger, _settings, _taskFactory));
     _printUsageCommand = new PrintUsageCommand(_commands.Values, _logger);
 }
Example #4
0
 /// <summary>
 /// Creates an instance of this class for the given type.
 /// </summary>
 internal TaskFactoryWrapper(ITaskFactory taskFactory, LoadedType taskFactoryLoadInfo, string taskName, IDictionary<string, string> factoryIdentityParameters)
 {
     ErrorUtilities.VerifyThrowArgumentNull(taskFactory, "taskFactory");
     ErrorUtilities.VerifyThrowArgumentLength(taskName, "taskName");
     _taskFactory = taskFactory;
     _taskName = taskName;
     TaskFactoryLoadedType = taskFactoryLoadInfo;
     _factoryIdentityParameters = factoryIdentityParameters;
 }
		public AvailablePackagesViewModel(
			IPackageManagementService packageManagementService,
			IMessageReporter messageReporter,
			ITaskFactory taskFactory)
			: base(packageManagementService, messageReporter, taskFactory)
		{
			IsSearchable = true;
			ShowPackageSources = packageManagementService.HasMultiplePackageSources;
		}
		public CheckForUpdatesTaskRunner (
			ITaskFactory taskFactory,
			IPackageManagementProgressMonitorFactory progressMonitorFactory,
			IPackageManagementEvents packageManagementEvents)
		{
			this.taskFactory = taskFactory;
			this.progressMonitorFactory = progressMonitorFactory;
			this.packageManagementEvents = packageManagementEvents;
		}
		public AvailablePackagesViewModel(
			IRegisteredPackageRepositories registeredPackageRepositories,
			IPackageViewModelFactory packageViewModelFactory,
			ITaskFactory taskFactory)
			: base(registeredPackageRepositories, packageViewModelFactory, taskFactory)
		{
			IsSearchable = true;
			ShowPackageSources = registeredPackageRepositories.HasMultiplePackageSources;
		}
 public TweetWithSearchMetadata(
     ITweetWithSearchMetadataDTO tweetDTO, 
     ITweetController tweetController, 
     ITweetFactory tweetFactory, 
     IUserFactory userFactory, 
     ITaskFactory taskFactory) 
     : base(tweetDTO, tweetController, tweetFactory, userFactory, taskFactory)
 {
     _tweetWithSearchMetadataDTO = tweetDTO;
 }
		public RecentPackagesViewModel(
			IPackageManagementService packageManagementService,
			IMessageReporter messageReporter,
			ITaskFactory taskFactory)
			: base(packageManagementService, messageReporter, taskFactory)
		{
			recentPackageRepository = packageManagementService.RecentPackageRepository;
			packageManagementService.PackageInstalled += PackageInstalled;
			packageManagementService.PackageUninstalled += PackageUninstalled;
		}
Example #10
0
 public Message(
     IUserFactory userFactory,
     IMessageController messageController,
     IMessageDTO messageDTO,
     ITaskFactory taskFactory)
 {
     _userFactory = userFactory;
     _messageController = messageController;
     _messageDTO = messageDTO;
     _taskFactory = taskFactory;
 }
		public PackageUpdatesViewModel(
			IPackageManagementService packageManagementService,
			IMessageReporter messageReporter,
			ITaskFactory taskFactory)
			: this(
				packageManagementService,
				messageReporter,
				new LicenseAcceptanceService(),
				taskFactory)
		{
		}
		public InstalledPackagesViewModel(
			IPackageManagementService packageManagementService,
			IMessageReporter messageReporter,
			ITaskFactory taskFactory)
			: base(packageManagementService, messageReporter, taskFactory)
		{
			packageManagementService.PackageInstalled += PackageInstalled;
			packageManagementService.PackageUninstalled += PackageUninstalled;
			
			GetActiveProjectManager();
		}
Example #13
0
 public TwitterList(
     IUserFactory userFactory,
     ITwitterListController twitterListController,
     ITwitterListDTO twitterListDTO,
     ITaskFactory taskFactory)
 {
     _userFactory = userFactory;
     _twitterListController = twitterListController;
     _taskFactory = taskFactory;
     TwitterListDTO = twitterListDTO;
 }
Example #14
0
        public WorkAreaViewModel(IGridViewModel gridViewModel, ILoggerFacade logger, IEventAggregator eventAggregator, ITaskFactory taskFactory)
            : base(logger, eventAggregator)
        {
            Requires.NotNull(gridViewModel, "gridViewModel");
            Requires.NotNull(taskFactory, "taskFactory");

            _gridViewModel = gridViewModel;
            _taskFactory = taskFactory;

            SubscribeOnEvents(eventAggregator);
        }
        public pMixinsOnSolutionOpenCodeGenerator(IVisualStudioEventProxy visualStudioEventProxy, ICodeGeneratorContextFactory codeGeneratorContextFactory, IpMixinsCodeGeneratorResponseFileWriter responseFileWriter, ITaskFactory taskFactory, IVisualStudioCodeGenerator visualStudioCodeGenerator)
        {
            _codeGeneratorContextFactory = codeGeneratorContextFactory;
            _responseFileWriter = responseFileWriter;
            _taskFactory = taskFactory;
            _visualStudioCodeGenerator = visualStudioCodeGenerator;

            visualStudioEventProxy.OnSolutionOpening += (s, a) => WarmUpCodeGeneratorDependencyManager();

            visualStudioEventProxy.OnSolutionClosing += (s, a) => OnSolutionOpeningTask = null;
        }
		public UpdatedPackagesViewModel(
			IPackageManagementSolution packageManagementService,
			IRegisteredPackageRepositories registeredPackageRepositories,
			UpdatedPackageViewModelFactory packageViewModelFactory,			
			ITaskFactory taskFactory)
			: base(
				registeredPackageRepositories,
				packageViewModelFactory,
				taskFactory)
		{
			this.solution = packageManagementService;
		}
		public UpdatedPackagesViewModel(
			IPackageManagementSolution solution,
			IRegisteredPackageRepositories registeredPackageRepositories,
			IPackageViewModelFactory packageViewModelFactory,
			ITaskFactory taskFactory)
			: this(
				solution,
				registeredPackageRepositories,
				new UpdatedPackageViewModelFactory(packageViewModelFactory),
				taskFactory)
		{
		}
		public PackageUpdatesViewModel(
			IPackageManagementService packageManagementService,
			IMessageReporter messageReporter,
			ILicenseAcceptanceService licenseAcceptanceService,
			ITaskFactory taskFactory)
			: base(
				packageManagementService,
				new UpdatedPackageViewModelFactory(packageManagementService, licenseAcceptanceService, messageReporter),
				taskFactory)
		{
			this.packageManagementService = packageManagementService;
		}
        public UpdatedPackagesViewModel(
            IPackageManagementSolution solution,
            IRegisteredPackageRepositories registeredPackageRepositories,
            UpdatedPackageViewModelFactory packageViewModelFactory,
            ITaskFactory taskFactory)
            : base(registeredPackageRepositories,
				packageViewModelFactory,
				taskFactory)
        {
            this.selectedProjects = new PackageManagementSelectedProjects(solution);
            ShowPackageSources = true;
        }
		public AvailablePackagesViewModel(
			IRegisteredPackageRepositories registeredPackageRepositories,
			IRecentPackageRepository recentPackageRepository,
			IPackageViewModelFactory packageViewModelFactory,
			ITaskFactory taskFactory)
			: base(registeredPackageRepositories, packageViewModelFactory, taskFactory)
		{
			this.recentPackageRepository = recentPackageRepository;

			IsSearchable = true;
			ShowPackageSources = true;
			ShowPrerelease = true;
		}
		public InstalledPackagesViewModel(
			IPackageManagementSolution solution,
			IPackageManagementEvents packageManagementEvents,
			IRegisteredPackageRepositories registeredPackageRepositories,
			InstalledPackageViewModelFactory packageViewModelFactory,
			ITaskFactory taskFactory)
			: base(registeredPackageRepositories, packageViewModelFactory, taskFactory)
		{
			this.solution = solution;
			this.packageManagementEvents = packageManagementEvents;
			
			RegisterEvents();
			TryGetActiveProject();
		}
Example #22
0
 public Mention(
     ITweetDTO tweetDTO,
     ITweetController tweetController,
     ITweetFactory tweetFactory,
     IUserFactory userFactory,
     ITaskFactory taskFactory)
     : base(tweetDTO,
                tweetController,
                tweetFactory,
                userFactory,
                taskFactory)
 {
     // Default constructor inheriting from the default Tweet constructor
 }
        public InstalledPackagesViewModel(
			IPackageManagementSolution solution,
			IPackageManagementEvents packageManagementEvents,
			IRegisteredPackageRepositories registeredPackageRepositories,
			IPackageViewModelFactory packageViewModelFactory,
			ITaskFactory taskFactory)
            : base(solution,
				packageManagementEvents,
				registeredPackageRepositories, 
				packageViewModelFactory, 
				taskFactory)
        {
            RegisterEvents();
        }
		public RecentPackagesViewModel2 (
			IPackageManagementEvents packageManagementEvents,
			IRegisteredPackageRepositories registeredPackageRepositories,
			IPackageViewModelFactory2 packageViewModelFactory,
			ITaskFactory taskFactory)
			: base (registeredPackageRepositories, packageViewModelFactory, taskFactory)
		{
			this.packageManagementEvents = packageManagementEvents;

			recentPackageRepository = registeredPackageRepositories.RecentPackageRepository;

			packageManagementEvents.ParentPackageInstalled += ParentPackageInstalled;
			packageManagementEvents.ParentPackageUninstalled += ParentPackageUninstalled;
		}
		public AvailablePackagesViewModel (
			IPackageManagementSolution solution,
			IRegisteredPackageRepositories registeredPackageRepositories,
			IRecentPackageRepository recentPackageRepository,
			IPackageViewModelFactory packageViewModelFactory,
			ITaskFactory taskFactory)
			: base(registeredPackageRepositories, packageViewModelFactory, taskFactory)
		{
			this.solutionPackageRepository = solution.GetRepository ();
			this.recentPackageRepository = recentPackageRepository;

			IsSearchable = true;
			ShowPackageSources = true;
			ShowPrerelease = true;
		}
 public MessagePump(
     IClock clock,
     IDispatchContextManager dispatchContextManager,
     ILogger logger,
     IMessageDispatcher messageDispatcher,
     IMessageReceiver receiver,
     ITaskFactory taskFactory)
 {
     _clock = clock;
     _dispatchContextManager = dispatchContextManager;
     _logger = logger;
     _messageDispatcher = messageDispatcher;
     _receiver = receiver;
     _taskFactory = taskFactory;
 }
        public PackagesViewModels(
			IPackageManagementSolution solution,
			IRegisteredPackageRepositories registeredPackageRepositories,
			IThreadSafePackageManagementEvents packageManagementEvents,
			IPackageActionRunner actionRunner,
			ITaskFactory taskFactory)
        {
            var packageViewModelFactory = new PackageViewModelFactory(solution, packageManagementEvents, actionRunner);
            var updatedPackageViewModelFactory = new UpdatedPackageViewModelFactory(packageViewModelFactory);

            AvailablePackagesViewModel = new AvailablePackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory);
            InstalledPackagesViewModel = new InstalledPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory);
            UpdatedPackagesViewModel = new UpdatedPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, updatedPackageViewModelFactory, taskFactory);
            RecentPackagesViewModel = new RecentPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory);
        }
 public MessagePumpsManager(IMessagePump responseMessagePump,
                            IEnumerable<IMessagePump> requestMessagePumps,
                            IEnumerable<IMessagePump> commandMessagePumps,
                            IEnumerable<IMessagePump> multicastRequestMessagePumps,
                            IEnumerable<IMessagePump> multicastEventMessagePumps,
                            IEnumerable<IMessagePump> competingEventMessagePumps,
                            ITaskFactory taskFactory)
 {
     _responseMessagePump = responseMessagePump;
     _commandMessagePumps = commandMessagePumps.ToArray();
     _requestMessagePumps = requestMessagePumps.ToArray();
     _multicastRequestMessagePumps = multicastRequestMessagePumps.ToArray();
     _multicastEventMessagePumps = multicastEventMessagePumps.ToArray();
     _competingEventMessagePumps = competingEventMessagePumps.ToArray();
     _taskFactory = taskFactory;
 }
		public TestableAvailablePackagesViewModel(
			IPackageManagementSolution solution,
			IPackageManagementEvents packageManagementEvents,
			IRegisteredPackageRepositories registeredPackageRepositories,
			IPackageViewModelFactory packageViewModelFactory,
			ITaskFactory taskFactory)
			: base(
				solution,
				packageManagementEvents,
				registeredPackageRepositories, 
				packageViewModelFactory, 
				taskFactory)
		{
			IsProjectPackageReturnsValue = true;
			IsProjectPackageIsCalled = false;
		}
 public CommandProvider(IDbToolConfig config, IDbToolLogger logger, ITaskFactory taskFactory)
 {
     _logger = logger;
     _settings = config.Settings;
     _taskFactory = taskFactory;
     Add(new RestoreDatabase(_logger, _settings, _taskFactory),
         new DropDatabase(_logger, _settings, _taskFactory),
         new BackupDatabase(_logger, _settings, _taskFactory),
         new CreateDatabase(_logger, _settings, _taskFactory),
         new ListDatabases(_logger, _settings, _taskFactory),
         new PopulateContext(_logger, _settings, _taskFactory),
         new MigrateDatabase(_logger, _settings, _taskFactory),
         new ViewDatabaseVersion(_logger, _settings, _taskFactory),
         new ViewDbToolVersion(_logger, _settings),
         new ContextCommand(_logger, _settings),
         new SetSettings(_logger, _settings));
     _printUsageCommand = new PrintUsageCommand(_logger, _commands);
 }