Castle.MicroKernel.Registration.Component
Factory for creating ComponentRegistration objects. Use static methods on the class to fluently build registration.
namespace Castle.MicroKernel.Registration
{
public static class Component
{
public static ComponentRegistration For(Type serviceType);
public static ComponentRegistration For(params Type[] serviceTypes);
public static ComponentRegistration For(IEnumerable<Type> serviceTypes);
public static ComponentRegistration<TService> For<TService>() where TService : class;
public static ComponentRegistration<TService1> For<TService1, TService2>() where TService1 : class;
public static ComponentRegistration<TService1> For<TService1, TService2, TService3>() where TService1 : class;
public static ComponentRegistration<TService1> For<TService1, TService2, TService3, TService4>() where TService1 : class;
public static ComponentRegistration<TService1> For<TService1, TService2, TService3, TService4, TService5>() where TService1 : class;
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);
public static Predicate<Type> IsInNamespace(string namespace);
public static Predicate<Type> IsInNamespace(string namespace, bool includeSubnamespaces);
public static Predicate<Type> IsInSameNamespaceAs(Type type);
public static Predicate<Type> IsInSameNamespaceAs(Type type, bool includeSubnamespaces);
public static Predicate<Type> IsInSameNamespaceAs<T>();
public static Predicate<Type> IsInSameNamespaceAs<T>(bool includeSubnamespaces);
}
}