C# Class NuGet.Dialog.Providers.PackagesProviderBase

Base class for all tree node types.
Inheritance: Microsoft.VisualStudio.ExtensionsExplorer.UI.VsExtensionsProvider, ILogger, IDisposable
Afficher le fichier Open project: themotleyfool/NuGet Class Usage Examples

Private Properties

Свойство Type Description
AddSearchNode void
ClearProgressMessages void
CollapseNodes void
CreateExtensionsTree void
Execute void
FindProjectFromFileSystem Project
GetTargetFrameworkForPackage FrameworkName
OnPackageInstalled void
OnPackageReferenceAdded void
OnPackageReferenceRemoving void
OnProgressAvailable void
OnRunWorkerCompleted void
OnRunWorkerDoWork void
OpenReadMeFile void
PrepareOpenReadMeFile void
RemoveSearchNode void
SaveExpandedNodes void

Méthodes publiques

Méthode Description
CanExecute ( PackageItem item ) : bool
CreateExtension ( IPackage package ) : IVsExtension
Dispose ( ) : void
Log ( MessageLevel level, string message ) : void
Search ( string searchText ) : IVsExtensionsTreeNode
ToString ( ) : string

Méthodes protégées

Méthode Description
AddFailedProject ( Project project, Exception exception ) : void
CheckInstallPSScripts ( IPackage package, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
CheckInstallPSScripts ( IPackage package, IPackageRepository localRepository, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
CloseProgressWindow ( ) : void
CreateSortDescriptors ( ) : IList
ExecuteCore ( PackageItem item ) : bool

This method is called on background thread.

FillRootNodes ( ) : void
GetProgressMessage ( IPackage package ) : string
HideProgressWindow ( ) : void
OnExecuteCompleted ( PackageItem item ) : void
PackagesProviderBase ( IPackageRepository localRepository, System.Windows.ResourceDictionary resources, ProviderServices providerServices, IProgressProvider progressProvider, ISolutionManager solutionManager ) : System
RegisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
SelectNode ( NuGet.Dialog.Providers.PackagesTreeNodeBase node ) : void
ShowLicenseAgreement ( IVsPackageManager packageManager, IEnumerable operations ) : bool
ShowProgress ( string operation, int percentComplete ) : void
ShowProgressWindow ( ) : void
UnregisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
WriteLineToOutputWindow ( string message = "" ) : void

Private Methods

Méthode Description
AddSearchNode ( ) : void
ClearProgressMessages ( ) : void
CollapseNodes ( ) : void
CreateExtensionsTree ( ) : void
Execute ( PackageItem item ) : void
FindProjectFromFileSystem ( IFileSystem fileSystem ) : Project
GetTargetFrameworkForPackage ( string packageId ) : FrameworkName
OnPackageInstalled ( object sender, NuGet.VisualStudio.PackageOperationEventArgs e ) : void
OnPackageReferenceAdded ( object sender, NuGet.VisualStudio.PackageOperationEventArgs e ) : void
OnPackageReferenceRemoving ( object sender, NuGet.VisualStudio.PackageOperationEventArgs e ) : void
OnProgressAvailable ( object sender, ProgressEventArgs e ) : void
OnRunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
OnRunWorkerDoWork ( object sender, DoWorkEventArgs e ) : void
OpenReadMeFile ( ) : void
PrepareOpenReadMeFile ( NuGet.VisualStudio.PackageOperationEventArgs e ) : void
RemoveSearchNode ( ) : void
SaveExpandedNodes ( ) : void

Method Details

AddFailedProject() protected méthode

protected AddFailedProject ( Project project, Exception exception ) : void
project Project
exception System.Exception
Résultat void

CanExecute() public abstract méthode

public abstract CanExecute ( PackageItem item ) : bool
item PackageItem
Résultat bool

CheckInstallPSScripts() protected méthode

protected CheckInstallPSScripts ( IPackage package, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
package IPackage
sourceRepository IPackageRepository
targetFramework FrameworkName
includePrerelease bool
operations IList
Résultat void

CheckInstallPSScripts() protected méthode

protected CheckInstallPSScripts ( IPackage package, IPackageRepository localRepository, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
package IPackage
localRepository IPackageRepository
sourceRepository IPackageRepository
targetFramework FrameworkName
includePrerelease bool
operations IList
Résultat void

CloseProgressWindow() protected méthode

protected CloseProgressWindow ( ) : void
Résultat void

CreateExtension() public abstract méthode

public abstract CreateExtension ( IPackage package ) : IVsExtension
package IPackage
Résultat IVsExtension

CreateSortDescriptors() protected méthode

protected CreateSortDescriptors ( ) : IList
Résultat IList

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ExecuteCore() protected méthode

This method is called on background thread.
protected ExecuteCore ( PackageItem item ) : bool
item PackageItem
Résultat bool

FillRootNodes() protected méthode

protected FillRootNodes ( ) : void
Résultat void

GetProgressMessage() protected méthode

protected GetProgressMessage ( IPackage package ) : string
package IPackage
Résultat string

HideProgressWindow() protected méthode

protected HideProgressWindow ( ) : void
Résultat void

Log() public méthode

public Log ( MessageLevel level, string message ) : void
level MessageLevel
message string
Résultat void

OnExecuteCompleted() protected méthode

protected OnExecuteCompleted ( PackageItem item ) : void
item PackageItem
Résultat void

PackagesProviderBase() protected méthode

protected PackagesProviderBase ( IPackageRepository localRepository, System.Windows.ResourceDictionary resources, ProviderServices providerServices, IProgressProvider progressProvider, ISolutionManager solutionManager ) : System
localRepository IPackageRepository
resources System.Windows.ResourceDictionary
providerServices ProviderServices
progressProvider IProgressProvider
solutionManager ISolutionManager
Résultat System

RegisterPackageOperationEvents() protected méthode

protected RegisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
packageManager IPackageManager
projectManager IProjectManager
Résultat void

Search() public méthode

public Search ( string searchText ) : IVsExtensionsTreeNode
searchText string
Résultat IVsExtensionsTreeNode

SelectNode() protected méthode

protected SelectNode ( NuGet.Dialog.Providers.PackagesTreeNodeBase node ) : void
node NuGet.Dialog.Providers.PackagesTreeNodeBase
Résultat void

ShowLicenseAgreement() protected méthode

protected ShowLicenseAgreement ( IVsPackageManager packageManager, IEnumerable operations ) : bool
packageManager IVsPackageManager
operations IEnumerable
Résultat bool

ShowProgress() protected méthode

protected ShowProgress ( string operation, int percentComplete ) : void
operation string
percentComplete int
Résultat void

ShowProgressWindow() protected méthode

protected ShowProgressWindow ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

UnregisterPackageOperationEvents() protected méthode

protected UnregisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
packageManager IPackageManager
projectManager IProjectManager
Résultat void

WriteLineToOutputWindow() protected méthode

protected WriteLineToOutputWindow ( string message = "" ) : void
message string
Résultat void