C# 클래스 Hiro.Functors.Core.FunctorRegistry

Represents a utility class that stores factory functor instances.
파일 보기 프로젝트 열기: philiplaureano/Hiro 1 사용 예제들

공개 메소드들

메소드 설명
AddFunctor ( string key, object>.Func functor ) : void

Adds a functor to the registry.

CreateInstance ( string key, IMicroContainer container ) : object

Creates the instance with the given container and functor key.

GetFunctor ( string key ) : object>.Func

Gets the functor associated with the given functor key.

메소드 상세

AddFunctor() 공개 정적인 메소드

Adds a functor to the registry.
public static AddFunctor ( string key, object>.Func functor ) : void
key string The key that uniquely identifies the functor.
functor object>.Func The functor instance.
리턴 void

CreateInstance() 공개 정적인 메소드

Creates the instance with the given container and functor key.
public static CreateInstance ( string key, IMicroContainer container ) : object
key string The unique functor id.
container IMicroContainer The host container.
리턴 object

GetFunctor() 공개 정적인 메소드

Gets the functor associated with the given functor key.
public static GetFunctor ( string key ) : object>.Func
key string The unique functor id.
리턴 object>.Func