C# Class Microsoft.Practices.Prism.Modularity.ModuleDependencySolver

Used by ModuleInitializer to get the load sequence for the modules to load according to their dependencies.
Mostrar archivo Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method Description
AddDependency ( string dependingModule, string dependentModule ) : void

Adds a module dependency between the modules specified by dependingModule and dependentModule.

AddModule ( string name ) : void

Adds a module to the solver.

ModuleDependencySolver ( ) : Microsoft.Practices.Prism.Properties

Initializes a new instance of the ModuleDependencySolver class.

Solve ( ) : string[]

Calculates an ordered vector according to the defined dependencies. Non-dependant modules appears at the beginning of the resulting array.

Private Methods

Method Description
AddToDependencyMatrix ( string module ) : void
AddToKnownModules ( string module ) : void
FindLeaves ( List skip ) : List
FindMissingModules ( List skip ) : string

Method Details

AddDependency() public method

Adds a module dependency between the modules specified by dependingModule and dependentModule.
public AddDependency ( string dependingModule, string dependentModule ) : void
dependingModule string The name of the module with the dependency.
dependentModule string The name of the module dependingModule /// depends on.
return void

AddModule() public method

Adds a module to the solver.
public AddModule ( string name ) : void
name string The name that uniquely identifies the module.
return void

ModuleDependencySolver() public method

Initializes a new instance of the ModuleDependencySolver class.
public ModuleDependencySolver ( ) : Microsoft.Practices.Prism.Properties
return Microsoft.Practices.Prism.Properties

Solve() public method

Calculates an ordered vector according to the defined dependencies. Non-dependant modules appears at the beginning of the resulting array.
This exception is thrown /// when a cycle is found in the defined depedency graph.
public Solve ( ) : string[]
return string[]