C# Class Dynamo.PackageManager.Package

Inheritance: Microsoft.Practices.Prism.ViewModel.NotificationObject
Afficher le fichier Open project: DynamoDS/Dynamo Class Usage Examples

Private Properties

Свойство Type Description
AddAssemblies void
ContainsFile bool
EnumerateAssembliesInBinDirectory IEnumerable
InUse bool
IsCustomNodeFromPackageInUse bool
IsNodeLibrary bool
IsWorkspaceFromPackageOpen bool
MarkForUninstall void
RefreshCustomNodesFromDirectory void
UninstallCore void
UnmarkForUninstall void

Méthodes publiques

Méthode Description
EnumerateAdditionalFiles ( ) : void
EnumerateAssemblyFilesInBinDirectory ( ) : IEnumerable
FromDirectory ( string rootPath, ILogger logger ) : Package
FromJson ( string headerPath, ILogger logger ) : Package
Package ( string directory, string name, string versionName, string license ) : System

Méthodes protégées

Méthode Description
Log ( ILogMessage obj ) : void
Log ( string s ) : void

Private Methods

Méthode Description
AddAssemblies ( IEnumerable assems ) : void

Add assemblies at runtime to the package. Does not load the assembly into the node library. If the package is already present in LoadedAssemblies, this will mutate it's IsNodeLibrary property.

ContainsFile ( string path ) : bool
EnumerateAssembliesInBinDirectory ( ) : IEnumerable

Enumerates all assemblies in the package

InUse ( DynamoModel dynamoModel ) : bool
IsCustomNodeFromPackageInUse ( DynamoModel dynamoModel ) : bool
IsNodeLibrary ( IEnumerable nodeLibraryFullNames, AssemblyName name, IList &messages ) : bool

Determine if an assembly is in the "node_libraries" list for the package. This algorithm accepts assemblies that don't have the same version, but the same name. This is important when a package author has updated a dll in their package. This algorithm assumes all of the entries in nodeLibraryFullNames are properly formatted as returned by the Assembly.FullName property. If they are not, it ignores the entry.

IsWorkspaceFromPackageOpen ( DynamoModel dynamoModel ) : bool
MarkForUninstall ( IPreferences prefs ) : void
RefreshCustomNodesFromDirectory ( Dynamo.Utilities.CustomNodeManager customNodeManager, bool isTestMode ) : void
UninstallCore ( Dynamo.Utilities.CustomNodeManager customNodeManager, Dynamo.PackageManager.PackageLoader packageLoader, IPreferences prefs ) : void
UnmarkForUninstall ( IPreferences prefs ) : void

Method Details

EnumerateAdditionalFiles() public méthode

public EnumerateAdditionalFiles ( ) : void
Résultat void

EnumerateAssemblyFilesInBinDirectory() public méthode

public EnumerateAssemblyFilesInBinDirectory ( ) : IEnumerable
Résultat IEnumerable

FromDirectory() public static méthode

public static FromDirectory ( string rootPath, ILogger logger ) : Package
rootPath string
logger ILogger
Résultat Package

FromJson() public static méthode

public static FromJson ( string headerPath, ILogger logger ) : Package
headerPath string
logger ILogger
Résultat Package

Log() protected méthode

protected Log ( ILogMessage obj ) : void
obj ILogMessage
Résultat void

Log() protected méthode

protected Log ( string s ) : void
s string
Résultat void

Package() public méthode

public Package ( string directory, string name, string versionName, string license ) : System
directory string
name string
versionName string
license string
Résultat System