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);
Показать файл Открыть проект

Открытые методы

Метод Описание
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