C# 클래스 CommonComposition.CompositionExtensions

Provides automatic component registration by scanning assemblies and types for those that have the ComponentAttribute annotation.
Several overloads provide seamless Ninject registration custommization. The following example registers all annotated components from the given given assembly on the given Ninject kernel: var kernel = new Ninject.StandardKernel(); kernel.RegisterComponents(typeof(IFoo).Assembly);
파일 보기 프로젝트 열기: netfx/CommonComposition

공개 메소드들

메소드 설명
RegisterComponents ( this configuration ) : ContainerConfiguration

Registers the components found in the given assemblies.

RegisterComponents ( this configuration, IEnumerable types ) : ContainerConfiguration

Registers the components found in the given set of types.

RegisterComponents ( this builder ) : IRegistrationBuilder

Registers the components found in the given assemblies.

RegisterComponents ( this builder, IEnumerable types ) : IRegistrationBuilder

Registers the components found in the given set of types.

RegisterComponents ( this container ) : void

Registers the components found in the given assemblies.

RegisterComponents ( this container, Action customize ) : void

Registers the components found in the given assemblies.

RegisterComponents ( this container, Action customize, IEnumerable types ) : void

Registers the components found in the given types.

RegisterComponents ( this kernel, Action customize ) : void

Registers the components found in the given assemblies.

RegisterComponents ( this kernel, Action customize, IEnumerable types ) : void

Registers the components found in the given types.

RegisterComponents ( this container, IEnumerable types ) : void

Registers the components found in the given types.

비공개 메소드들

메소드 설명
SetNamed ( IBindingNamedWithOrOnSyntax syntax, Type type ) : void

메소드 상세

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given assemblies.
public static RegisterComponents ( this configuration ) : ContainerConfiguration
configuration this
리턴 ContainerConfiguration

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given set of types.
public static RegisterComponents ( this configuration, IEnumerable types ) : ContainerConfiguration
configuration this
types IEnumerable
리턴 ContainerConfiguration

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given assemblies.
public static RegisterComponents ( this builder ) : IRegistrationBuilder
builder this
리턴 IRegistrationBuilder

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given set of types.
public static RegisterComponents ( this builder, IEnumerable types ) : IRegistrationBuilder
builder this
types IEnumerable
리턴 IRegistrationBuilder

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given assemblies.
public static RegisterComponents ( this container ) : void
container this
리턴 void

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given assemblies.
public static RegisterComponents ( this container, Action customize ) : void
container this
customize Action
리턴 void

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given types.
public static RegisterComponents ( this container, Action customize, IEnumerable types ) : void
container this
customize Action
types IEnumerable
리턴 void

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given assemblies.
public static RegisterComponents ( this kernel, Action customize ) : void
kernel this
customize Action
리턴 void

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given types.
public static RegisterComponents ( this kernel, Action customize, IEnumerable types ) : void
kernel this
customize Action
types IEnumerable
리턴 void

RegisterComponents() 공개 정적인 메소드

Registers the components found in the given types.
public static RegisterComponents ( this container, IEnumerable types ) : void
container this
types IEnumerable
리턴 void