C# 클래스 Catel.IoC.CatelDependencyResolver

Implementation of the IDependencyResolver interface for Catel by wrapping the ServiceLocator.
상속: IDependencyResolver
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
CanResolve ( Type type, object tag = null ) : bool

Determines whether the specified type with the specified tag can be resolved.

CanResolveAll ( Type types ) : bool

Determines whether all types specified can be resolved. Though ResolveAll will return null at the array index when a type cannot be resolved, this method will actually check whether all the specified types are registered. It is still possible to call ResolveAll, even when this method returns false.

CatelDependencyResolver ( IServiceLocator serviceLocator ) : System

Initializes a new instance of the CatelDependencyResolver class.

Resolve ( Type type, object tag = null ) : object

Resolves the specified type with the specified tag.

ResolveAll ( Type types, object tag = null ) : object[]

Resolves the specified types with the specified tag.

메소드 상세

CanResolve() 공개 메소드

Determines whether the specified type with the specified tag can be resolved.
public CanResolve ( Type type, object tag = null ) : bool
type System.Type The type.
tag object The tag.
리턴 bool

CanResolveAll() 공개 메소드

Determines whether all types specified can be resolved. Though ResolveAll will return null at the array index when a type cannot be resolved, this method will actually check whether all the specified types are registered. It is still possible to call ResolveAll, even when this method returns false.
public CanResolveAll ( Type types ) : bool
types System.Type The types.
리턴 bool

CatelDependencyResolver() 공개 메소드

Initializes a new instance of the CatelDependencyResolver class.
The is null.
public CatelDependencyResolver ( IServiceLocator serviceLocator ) : System
serviceLocator IServiceLocator The service locator.
리턴 System

Resolve() 공개 메소드

Resolves the specified type with the specified tag.
The is null. The type is not found in any container.
public Resolve ( Type type, object tag = null ) : object
type System.Type The type.
tag object The tag.
리턴 object

ResolveAll() 공개 메소드

Resolves the specified types with the specified tag.
public ResolveAll ( Type types, object tag = null ) : object[]
types System.Type The types.
tag object The tag.
리턴 object[]