<PackageReference Include="Castle.Windsor" Version="3.1.0" />

FromDescriptor

public abstract class FromDescriptor : IRegistration
Describes the source of types to register.

Allows a type to be registered multiple times.

Returns the descriptor for accepting a type.

public BasedOnDescriptor BasedOn(Type basedOn)

Returns the descriptor for accepting a type.

public BasedOnDescriptor InNamespace(string namespace)

Creates a predicate to check if a component is in a namespace.

public BasedOnDescriptor InNamespace(string namespace, bool includeSubnamespaces)

Creates a predicate to check if a component is in a namespace.

Creates a predicate to check if a component shares a namespace with another.

public BasedOnDescriptor InSameNamespaceAs(Type type, bool includeSubnamespaces)

Creates a predicate to check if a component shares a namespace with another.

Creates a predicate to check if a component shares a namespace with another.

public BasedOnDescriptor InSameNamespaceAs<T>(bool includeSubnamespaces)

Creates a predicate to check if a component shares a namespace with another.

Returns the descriptor for accepting any type from given solutions.

protected abstract IEnumerable<Type> SelectedTypes(IKernel kernel)

Returns the descriptor for accepting a type based on a condition.