C# 클래스 Hiro.BaseDependencyMap

Represents a class that can map dependencies to implementations.
상속: IDependencyMap
파일 보기 프로젝트 열기: philiplaureano/Hiro

보호된 프로퍼티들

프로퍼티 타입 설명
_entries IImplementation>.HashList

공개 메소드들

메소드 설명
AddService ( IDependency dependency, IImplementation implementation ) : void

Associates the given implementation with the target dependency.

Contains ( IDependency dependency ) : bool

Determines whether or not a particular service dependency exists in the current dependency container.

Equals ( object other ) : bool

Determines whether the specified System.Object is equal to the current System.Object.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

GetImplementations ( IDependency targetDependency, bool addIncompleteImplementations ) : IEnumerable

Gets the current list of implementations for the current dependency.

메소드 상세

AddService() 공개 메소드

Associates the given implementation with the target dependency.
public AddService ( IDependency dependency, IImplementation implementation ) : void
dependency IDependency The dependency that will be associated with the implementation.
implementation IImplementation The implementation itself.
리턴 void

Contains() 공개 메소드

Determines whether or not a particular service dependency exists in the current dependency container.
public Contains ( IDependency dependency ) : bool
dependency IDependency The target service dependency.
리턴 bool

Equals() 공개 메소드

Determines whether the specified System.Object is equal to the current System.Object.
public Equals ( object other ) : bool
other object The System.Object to compare with the current System.Object.
리턴 bool

GetHashCode() 공개 메소드

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
리턴 int

GetImplementations() 공개 메소드

Gets the current list of implementations for the current dependency.
public GetImplementations ( IDependency targetDependency, bool addIncompleteImplementations ) : IEnumerable
targetDependency IDependency The target dependency.
addIncompleteImplementations bool A boolean flag that determines whether or not the resulting list should include implementations with incomplete dependencies.
리턴 IEnumerable

프로퍼티 상세

_entries 보호되어 있는 프로퍼티

The list of dependencies in the current map.
protected HashList _entries
리턴 IImplementation>.HashList