本文整理汇总了C#中ISolutionManager类的典型用法代码示例。如果您正苦于以下问题:C# ISolutionManager类的具体用法?C# ISolutionManager怎么用?C# ISolutionManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISolutionManager类属于命名空间,在下文中一共展示了ISolutionManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: VsPackageManagerFactory
public VsPackageManagerFactory(ISolutionManager solutionManager,
IPackageRepositoryFactory repositoryFactory,
IFileSystemProvider fileSystemProvider,
IRepositorySettings repositorySettings,
IRecentPackageRepository recentPackagesRepository)
{
if (solutionManager == null) {
throw new ArgumentNullException("solutionManager");
}
if (repositoryFactory == null) {
throw new ArgumentNullException("repositoryFactory");
}
if (fileSystemProvider == null) {
throw new ArgumentNullException("fileSystemProvider");
}
if (repositorySettings == null) {
throw new ArgumentNullException("repositorySettings");
}
_fileSystemProvider = fileSystemProvider;
_repositorySettings = repositorySettings;
_solutionManager = solutionManager;
_repositoryFactory = repositoryFactory;
_recentPackageRepository = recentPackagesRepository;
_solutionManager.SolutionClosing += (sender, e) => {
_repositoryInfo = null;
};
}
开发者ID:jacksonh,项目名称:nuget,代码行数:29,代码来源:VsPackageManagerFactory.cs
示例2: DefaultHost
public DefaultHost(ISolutionManager solutionManager)
{
_solutionManager = solutionManager;
_commands.Add("npm", HandleNpmCommand);
_commands.Add("clear", HandleClearCommand);
}
开发者ID:happylancer,项目名称:node-tools,代码行数:7,代码来源:DefaultHost.cs
示例3: VsSettings
public VsSettings(ISolutionManager solutionManager, ISettings defaultSettings, IFileSystemProvider fileSystemProvider)
{
if (solutionManager == null)
{
throw new ArgumentNullException("solutionManager");
}
if (defaultSettings == null)
{
throw new ArgumentNullException("defaultSettings");
}
if (fileSystemProvider == null)
{
throw new ArgumentNullException("fileSystemProvider");
}
_solutionManager = solutionManager;
_defaultSettings = defaultSettings;
_fileSystemProvider = fileSystemProvider;
EventHandler eventHandler = (src, eventArgs) =>
{
_solutionSettings = null;
};
_solutionManager.SolutionOpened += eventHandler;
_solutionManager.SolutionClosed += eventHandler;
}
开发者ID:monoman,项目名称:NugetCracker,代码行数:26,代码来源:VsSettings.cs
示例4: GetPackageCommand
public GetPackageCommand(IPackageRepositoryFactory repositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepository recentPackagesRepository,
IHttpClientEvents httpClientEvents,
IProductUpdateService productUpdateService)
: base(solutionManager, packageManagerFactory, httpClientEvents)
{
if (repositoryFactory == null)
{
throw new ArgumentNullException("repositoryFactory");
}
if (packageSourceProvider == null)
{
throw new ArgumentNullException("packageSourceProvider");
}
if (recentPackagesRepository == null)
{
throw new ArgumentNullException("recentPackagesRepository");
}
_repositoryFactory = repositoryFactory;
_packageSourceProvider = packageSourceProvider;
_recentPackagesRepository = recentPackagesRepository;
_productUpdateService = productUpdateService;
}
开发者ID:monoman,项目名称:NugetCracker,代码行数:28,代码来源:GetPackageCommand.cs
示例5: RecentProvider
public RecentProvider(
Project project,
IPackageRepository localRepository,
ResourceDictionary resources,
IPackageRepositoryFactory packageRepositoryFactory,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepository recentPackagesRepository,
IPackageSourceProvider packageSourceProvider,
ProviderServices providerServices,
IProgressProvider progressProvider,
ISolutionManager solutionManager) :
base(
project,
localRepository,
resources,
packageRepositoryFactory,
null,
packageManagerFactory,
providerServices,
progressProvider,
solutionManager)
{
_recentPackagesRepository = recentPackagesRepository;
_packageManagerFactory = packageManagerFactory;
_packageRepositoryFactory = packageRepositoryFactory;
_packageSourceProvider = packageSourceProvider;
}
开发者ID:monoman,项目名称:NugetCracker,代码行数:28,代码来源:RecentProvider.cs
示例6: VsSourceControlTracker
public VsSourceControlTracker(
ISolutionManager solutionManager,
IFileSystemProvider fileSystemProvider,
IVsTrackProjectDocuments2 projectTracker,
ISettings solutionSettings)
{
if (projectTracker == null)
{
throw new ArgumentNullException("projectTracker");
}
_solutionManager = solutionManager;
_projectTracker = projectTracker;
_fileSystemProvider = fileSystemProvider;
_solutionSettings = solutionSettings;
_projectDocumentListener = new TrackProjectDocumentEventListener(this);
_solutionManager.SolutionOpened += OnSolutionOpened;
_solutionManager.SolutionClosed += OnSolutionClosed;
if (_solutionManager.IsSolutionOpen)
{
StartTracking();
}
}
开发者ID:xero-github,项目名称:Nuget,代码行数:25,代码来源:VsSourceControlTracker.cs
示例7: InstallPackageCommand
internal InstallPackageCommand(
ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepositoryFactory repositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
IHttpClientEvents httpClientEvents,
IProductUpdateService productUpdateService,
IVsCommonOperations vsCommonOperations,
IDeleteOnRestartManager deleteOnRestartManager,
bool networkAvailable)
: base(solutionManager, packageManagerFactory, httpClientEvents, vsCommonOperations, deleteOnRestartManager)
{
_productUpdateService = productUpdateService;
_repositoryFactory = repositoryFactory;
_packageSourceProvider = packageSourceProvider;
DependencyVersion = DependencyVersion.Lowest;
if (networkAvailable)
{
_isNetworkAvailable = isNetworkAvailable();
}
else
{
_isNetworkAvailable = false;
}
}
开发者ID:Berzeger,项目名称:NuGet,代码行数:26,代码来源:InstallPackageCommand.cs
示例8: RepositorySettings
internal RepositorySettings(
ISolutionManager solutionManager,
IFileSystemProvider fileSystemProvider,
IVsSourceControlTracker sourceControlTracker) :
this(solutionManager, fileSystemProvider, sourceControlTracker, machineWideSettings: null)
{
}
开发者ID:Newtopian,项目名称:nuget,代码行数:7,代码来源:RepositorySettings.cs
示例9: GetDefaultScaffolderCmdlet
internal GetDefaultScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory packageManagerFactory, IScaffoldingConfigStore configStore)
: base(solutionManager, packageManagerFactory, null)
{
_configStore = new Lazy<IScaffoldingConfigStore>(() => {
return configStore ?? new XmlScaffoldingConfigStore(SolutionManager);
});
}
开发者ID:tikrimi,项目名称:MvcScaffolding4TwitterBootstrapMvc,代码行数:7,代码来源:GetDefaultScaffolderCmdlet.cs
示例10: VsSolution
public VsSolution(DteSolution dteSolution, ISolutionManager solutionManager, IVsPackageManager packageManager)
{
_name = String.Format(
CultureInfo.CurrentCulture,
Strings.Label_Solution,
dteSolution.GetName());
_solution = solutionManager;
_packageManager = packageManager;
var repo = (SharedPackageRepository)packageManager.LocalRepository;
_installedSolutionLevelPackages = new CoreInteropInstalledPackagesList(
new PackageReferenceRepository(repo.PackageReferenceFile.FullPath, repo));
DteSolution = dteSolution;
// Add V2-related interop features
AddFeature(() => packageManager.LocalRepository);
AddFeature<IPackageManager>(() => packageManager);
AddFeature<IPackageCacheRepository>(() => MachineCache.Default);
// the source repository of the local repo of the solution
AddFeature<SourceRepository>(() =>
{
var localRepo = new NuGet.Client.Interop.V2SourceRepository(
null,
packageManager.LocalRepository,
"");
return localRepo;
});
// Add PowerShell feature
AddFeature<PowerShellScriptExecutor>(() =>
new VsPowerShellScriptExecutor(ServiceLocator.GetInstance<IScriptExecutor>()));
}
开发者ID:sistoimenov,项目名称:NuGet2,代码行数:34,代码来源:VsSolution.cs
示例11: VsPackageSourceProvider
private VsPackageSourceProvider(
ISettings settings,
IPackageSourceProvider packageSourceProvider,
IVsShellInfo vsShellInfo,
ISolutionManager solutionManager)
{
if (settings == null)
{
throw new ArgumentNullException("settings");
}
if (packageSourceProvider == null)
{
throw new ArgumentNullException("packageSourceProvider");
}
if (vsShellInfo == null)
{
throw new ArgumentNullException("vsShellInfo");
}
_packageSourceProvider = packageSourceProvider;
_solutionManager = solutionManager;
_settings = settings;
_vsShellInfo = vsShellInfo;
if (null != _solutionManager)
{
_solutionManager.SolutionClosed += OnSolutionOpenedOrClosed;
_solutionManager.SolutionOpened += OnSolutionOpenedOrClosed;
}
}
开发者ID:kumavis,项目名称:NuGet,代码行数:32,代码来源:VSPackageSourceProvider.cs
示例12: PackageRestoreManager
internal PackageRestoreManager(
DTE dte,
ISolutionManager solutionManager,
IFileSystemProvider fileSystemProvider,
IPackageRepositoryFactory packageRepositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
IVsPackageManagerFactory packageManagerFactory,
IVsPackageInstallerEvents packageInstallerEvents,
IPackageRepository localCacheRepository,
IVsThreadedWaitDialogFactory waitDialogFactory,
ISettings settings)
{
Debug.Assert(solutionManager != null);
_dte = dte;
_fileSystemProvider = fileSystemProvider;
_solutionManager = solutionManager;
_packageRepositoryFactory = packageRepositoryFactory;
_packageSourceProvider = packageSourceProvider;
_waitDialogFactory = waitDialogFactory;
_packageManagerFactory = packageManagerFactory;
_localCacheRepository = localCacheRepository;
_settings = settings;
_solutionManager.ProjectAdded += OnProjectAdded;
_solutionManager.SolutionOpened += OnSolutionOpenedOrClosed;
_solutionManager.SolutionClosed += OnSolutionOpenedOrClosed;
packageInstallerEvents.PackageReferenceAdded += OnPackageReferenceAdded;
}
开发者ID:Mailaender,项目名称:xamarin-nuget,代码行数:27,代码来源:PackageRestoreManager.cs
示例13: PackagesProviderBase
protected PackagesProviderBase(
IPackageRepository localRepository,
ResourceDictionary resources,
ProviderServices providerServices,
IProgressProvider progressProvider,
ISolutionManager solutionManager)
{
if (resources == null)
{
throw new ArgumentNullException("resources");
}
if (providerServices == null)
{
throw new ArgumentNullException("providerServices");
}
if (solutionManager == null)
{
throw new ArgumentNullException("solutionManager");
}
_localRepository = localRepository;
_providerServices = providerServices;
_progressProvider = progressProvider;
_solutionManager = solutionManager;
_resources = resources;
_outputConsole = new Lazy<IConsole>(() => providerServices.OutputConsoleProvider.CreateOutputConsole(requirePowerShellHost: false));
}
开发者ID:themotleyfool,项目名称:NuGet,代码行数:29,代码来源:PackagesProviderBase.cs
示例14: VsSettings
public VsSettings(ISolutionManager solutionManager)
: this(solutionManager,
Settings.LoadDefaultSettings(GetSolutionSettingsFileSystem(solutionManager)),
new PhysicalFileSystemProvider())
{
// Review: Do we need to pass in the VsFileSystemProvider here instead of hardcoding PhysicalFileSystems?
}
开发者ID:nickfloyd,项目名称:NuGet,代码行数:7,代码来源:VsSettings.cs
示例15: PackageRestoreManager
public PackageRestoreManager(ISourceRepositoryProvider sourceRepositoryProvider, ISettings settings, ISolutionManager solutionManager)
{
if(sourceRepositoryProvider == null)
{
throw new ArgumentNullException("sourceRepositoryProvider");
}
if (settings == null)
{
throw new ArgumentNullException("settings");
}
if(solutionManager == null)
{
throw new ArgumentNullException("solutionManager");
}
SourceRepositoryProvider = sourceRepositoryProvider;
Settings = settings;
SolutionManager = solutionManager;
SolutionManager.NuGetProjectAdded += OnNuGetProjectAdded;
SolutionManager.SolutionOpened += OnSolutionOpenedOrClosed;
SolutionManager.SolutionClosed += OnSolutionOpenedOrClosed;
}
开发者ID:pabomex,项目名称:NuGet.PackageManagement,代码行数:26,代码来源:PackageRestoreManager.cs
示例16: RepositorySettings
public RepositorySettings(ISolutionManager solutionManager, IFileSystemProvider fileSystemProvider, IVsSourceControlTracker sourceControlTracker)
{
if (solutionManager == null)
{
throw new ArgumentNullException("solutionManager");
}
if (fileSystemProvider == null)
{
throw new ArgumentNullException("fileSystemProvider");
}
if (sourceControlTracker == null)
{
throw new ArgumentNullException("sourceControlTracker");
}
_solutionManager = solutionManager;
_fileSystemProvider = fileSystemProvider;
EventHandler resetConfiguration = (sender, e) =>
{
// Kill our configuration cache when someone closes the solution
_configurationPath = null;
_fileSystem = null;
};
_solutionManager.SolutionClosing += resetConfiguration;
sourceControlTracker.SolutionBoundToSourceControl += resetConfiguration;
}
开发者ID:xero-github,项目名称:Nuget,代码行数:30,代码来源:RepositorySettings.cs
示例17: GetScaffolderCmdlet
internal GetScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory vsPackageManagerFactory, IScaffolderLocator scaffolderLocator)
: base(solutionManager, vsPackageManagerFactory, null)
{
// Can't read the value of CommandInvoker until *after* the constructor finishes, hence lazy
_scaffolderLocator = new Lazy<IScaffolderLocator>(
() => scaffolderLocator ?? new Ps1ScaffolderLocator(CommandInvoker, PackageManager, null, new DefaultFileSystem(), new XmlScaffoldingConfigStore(SolutionManager))
);
}
开发者ID:processedbeets,项目名称:ASP.NET-MVC-Scaffolding,代码行数:8,代码来源:GetScaffolderCmdlet.cs
示例18: VsPackageInstaller
public VsPackageInstaller(ISourceRepositoryProvider sourceRepositoryProvider, ISettings settings, ISolutionManager solutionManager, IVsPackageInstallerServices packageServices)
{
_sourceRepositoryProvider = sourceRepositoryProvider;
_settings = settings;
_solutionManager = solutionManager;
_projectContext = new VSAPIProjectContext();
_packageServices = packageServices;
}
开发者ID:mauroa,项目名称:NuGet.VisualStudioExtension,代码行数:8,代码来源:VsPackageInstaller.cs
示例19: VSPackageRestoreManager
public VSPackageRestoreManager(ISourceRepositoryProvider sourceRepositoryProvider, ISettings settings, ISolutionManager solutionManager)
: base(sourceRepositoryProvider, settings, solutionManager)
{
SolutionManager = solutionManager;
SolutionManager.NuGetProjectAdded += OnNuGetProjectAdded;
SolutionManager.SolutionOpened += OnSolutionOpenedOrClosed;
SolutionManager.SolutionClosed += OnSolutionOpenedOrClosed;
}
开发者ID:mauroa,项目名称:NuGet.VisualStudioExtension,代码行数:8,代码来源:VSPackageRestoreManager.cs
示例20: JishHost
public JishHost(VSConsole jsConsole, IJishInterpreter jish)
{
this.jsConsole = jsConsole;
this.jish = jish;
solutionManager = ((IComponentModel) Package.GetGlobalService(typeof (SComponentModel))).GetService<ISolutionManager>();
IsCommandEnabled = true;
}
开发者ID:plkumar,项目名称:jish,代码行数:8,代码来源:JishHost.cs
注:本文中的ISolutionManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论