C# 클래스 Microsoft.Practices.Prism.Modularity.ModuleDependencySolver

Used by ModuleInitializer to get the load sequence for the modules to load according to their dependencies.
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
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[]