C# Class Dynamo.PackageManager.Package

Inheritance: Microsoft.Practices.Prism.ViewModel.NotificationObject
显示文件 Open project: DynamoDS/Dynamo Class Usage Examples

Private Properties

Property Type Description
AddAssemblies void
ContainsFile bool
EnumerateAssembliesInBinDirectory IEnumerable
InUse bool
IsCustomNodeFromPackageInUse bool
IsNodeLibrary bool
IsWorkspaceFromPackageOpen bool
MarkForUninstall void
RefreshCustomNodesFromDirectory void
UninstallCore void
UnmarkForUninstall void

Public Methods

Method 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

Protected Methods

Method Description
Log ( ILogMessage obj ) : void
Log ( string s ) : void

Private Methods

Method 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 method

public EnumerateAdditionalFiles ( ) : void
return void

EnumerateAssemblyFilesInBinDirectory() public method

public EnumerateAssemblyFilesInBinDirectory ( ) : IEnumerable
return IEnumerable

FromDirectory() public static method

public static FromDirectory ( string rootPath, ILogger logger ) : Package
rootPath string
logger ILogger
return Package

FromJson() public static method

public static FromJson ( string headerPath, ILogger logger ) : Package
headerPath string
logger ILogger
return Package

Log() protected method

protected Log ( ILogMessage obj ) : void
obj ILogMessage
return void

Log() protected method

protected Log ( string s ) : void
s string
return void

Package() public method

public Package ( string directory, string name, string versionName, string license ) : System
directory string
name string
versionName string
license string
return System