C# Класс Microsoft.Practices.Prism.Modularity.ModuleDependencySolver

Used by ModuleInitializer to get the load sequence for the modules to load according to their dependencies.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AddToDependencyMatrix ( string module ) : void
AddToKnownModules ( string module ) : void
FindLeaves ( List skip ) : List
FindMissingModules ( List skip ) : string

Описание методов

AddDependency() публичный Метод

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.
Результат void

AddModule() публичный Метод

Adds a module to the solver.
public AddModule ( string name ) : void
name string The name that uniquely identifies the module.
Результат void

ModuleDependencySolver() публичный Метод

Initializes a new instance of the ModuleDependencySolver class.
public ModuleDependencySolver ( ) : Microsoft.Practices.Prism.Properties
Результат Microsoft.Practices.Prism.Properties

Solve() публичный Метод

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[]
Результат string[]