コード例 #1
0
        protected PackagesProviderBase(
            Project project,
            IProjectManager projectManager,
            ResourceDictionary resources,
            ProviderServices providerServices,
            IProgressProvider progressProvider)
        {
            if (projectManager == null) {
                throw new ArgumentNullException("projectManager");
            }

            if (project == null) {
                throw new ArgumentNullException("project");
            }

            if (resources == null) {
                throw new ArgumentNullException("resources");
            }

            if (providerServices == null) {
                throw new ArgumentNullException("providerServices");
            }

            _progressProvider = progressProvider;
            _resources = resources;
            _scriptExecutor = providerServices.ScriptExecutor;
            _progressWindowOpener = providerServices.ProgressWindow;
            _outputConsole = new Lazy<IConsole>(() => providerServices.OutputConsoleProvider.CreateOutputConsole(requirePowerShellHost: false));
            ProjectManager = projectManager;
            _project = project;
        }
コード例 #2
0
        protected PackagesProviderBase(
            Project project,
            IProjectManager projectManager,
            ResourceDictionary resources,
            ProviderServices providerServices,
            IProgressProvider progressProvider)
        {
            if (projectManager == null)
            {
                throw new ArgumentNullException("projectManager");
            }

            if (project == null)
            {
                throw new ArgumentNullException("project");
            }

            if (resources == null)
            {
                throw new ArgumentNullException("resources");
            }

            if (providerServices == null)
            {
                throw new ArgumentNullException("providerServices");
            }

            _progressProvider     = progressProvider;
            _resources            = resources;
            _scriptExecutor       = providerServices.ScriptExecutor;
            _progressWindowOpener = providerServices.ProgressWindow;
            _outputConsole        = new Lazy <IConsole>(() => providerServices.OutputConsoleProvider.CreateOutputConsole(requirePowerShellHost: false));
            ProjectManager        = projectManager;
            _project = project;
        }
コード例 #3
0
ファイル: ProviderServices.cs プロジェクト: grendello/nuget
 public ProviderServices(
     ILicenseWindowOpener licenseWindowOpener,
     IProgressWindowOpener progressWindow,
     IScriptExecutor scriptExecutor,
     IOutputConsoleProvider outputConsoleProvider)
 {
     LicenseWindow = licenseWindowOpener;
     ProgressWindow = progressWindow;
     ScriptExecutor = scriptExecutor;
     OutputConsoleProvider = outputConsoleProvider;
 }
コード例 #4
0
ファイル: ProviderServices.cs プロジェクト: lazlojuly/nuget
 public ProviderServices(
     ILicenseWindowOpener licenseWindowOpener,
     IProgressWindowOpener progressWindow,
     IScriptExecutor scriptExecutor,
     IOutputConsoleProvider outputConsoleProvider)
 {
     LicenseWindow         = licenseWindowOpener;
     ProgressWindow        = progressWindow;
     ScriptExecutor        = scriptExecutor;
     OutputConsoleProvider = outputConsoleProvider;
 }
コード例 #5
0
 public ProviderServices(
     IUserNotifierServices userNotifierServices,
     IProgressWindowOpener progressWindow,
     IProviderSettings selectedProviderSettings,
     IScriptExecutor scriptExecutor,
     IOutputConsoleProvider outputConsoleProvider,
     IVsCommonOperations vsCommonOperations)
 {
     UserNotifierServices = userNotifierServices;
     ProgressWindow = progressWindow;
     ScriptExecutor = scriptExecutor;
     OutputConsoleProvider = outputConsoleProvider;
     ProviderSettings = selectedProviderSettings;
     VsCommonOperations = vsCommonOperations;
 }
コード例 #6
0
ファイル: ProviderServices.cs プロジェクト: hu19891110/NuGet
 public ProviderServices(
     IUserNotifierServices userNotifierServices,
     IProgressWindowOpener progressWindow,
     IProviderSettings selectedProviderSettings,
     IScriptExecutor scriptExecutor,
     IOutputConsoleProvider outputConsoleProvider,
     IVsCommonOperations vsCommonOperations)
 {
     UserNotifierServices  = userNotifierServices;
     ProgressWindow        = progressWindow;
     ScriptExecutor        = scriptExecutor;
     OutputConsoleProvider = outputConsoleProvider;
     ProviderSettings      = selectedProviderSettings;
     VsCommonOperations    = vsCommonOperations;
 }