C# Class 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);
Datei anzeigen Open project: netfx/CommonComposition

Public Methods

Method Description
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.

Private Methods

Method Description
SetNamed ( IBindingNamedWithOrOnSyntax syntax, Type type ) : void

Method Details

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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

RegisterComponents() public static method

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