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

Component

public static class Component
Factory for creating ComponentRegistration objects.
public static ComponentRegistration For(Type serviceType)

Creates a component registration for the serviceType

public static ComponentRegistration For(Type[] serviceTypes)

Creates a component registration for the serviceTypes

public static ComponentRegistration For(IEnumerable<Type> serviceTypes)

Creates a component registration for the serviceTypes

public static ComponentRegistration<S> For<S>()

Creates a component registration for the service type.

Create a component registration for an existing ComponentModel

public static ComponentRegistration<S> For<S, F>()

Creates a component registration for the service types.

public static ComponentRegistration<S> For<S, F1, F2>()

Creates a component registration for the service types.

public static ComponentRegistration<S> For<S, F1, F2, F3>()

Creates a component registration for the service types.

public static ComponentRegistration<S> For<S, F1, F2, F3, F4>()

Creates a component registration for the service types.

public static bool HasAttribute<TAttribute>(Type type) where TAttribute : Attribute

public static Predicate<Type> HasAttribute<TAttribute>(Predicate<TAttribute> filter) where TAttribute : Attribute

public static bool IsCastleComponent(Type type)

Determines if the component is a Castle component, that is - if it has a CastleComponentAttribute.

public static Predicate<Type> IsInNamespace(string namespace)

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

public static Predicate<Type> IsInNamespace(string namespace, bool includeSubnamespaces)

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

public static Predicate<Type> IsInSameNamespaceAs(Type type)

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

public static Predicate<Type> IsInSameNamespaceAs(Type type, bool includeSubnamespaces)

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

public static Predicate<Type> IsInSameNamespaceAs<T>()

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

public static Predicate<Type> IsInSameNamespaceAs<T>(bool includeSubnamespaces)

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

public static bool ServiceAlreadyRegistered(IKernel kernel, ComponentModel model)

Determines if the component service is already registered.