ComponentRegistration<TService>
Registration for a single type as a component with the kernel.
You can create a new registration with the Component factory.
Gets the forwarded service types on behalf of this component.
Add more types to forward using Forward.
The concrete type that implements the service.
To set the implementation, use ImplementedBy.
Set the lifestyle of this component.
For example singleton and transient (also known as 'factory').
The name of the component. Will become the key for the component in the kernel.
To set the name, use Named.
If not set, the FullName of the Implementation
will be used as the key to register the component.
Set proxy for this component.
The type of the service, the same as TService.
This is the first type passed to For.
public ComponentRegistration()
Initializes a new instance of the ComponentRegistration<T> class.
Initializes a new instance of the ComponentRegistration<T> class
with an existing ComponentModel.
Marks the components with one or more actors.
Set a custom IComponentActivator which creates and destroys the component.
Adds the attribute descriptor.
Adds the descriptor.
Creates an attribute descriptor.
Apply more complex configuration to this component registration.
Apply more complex configuration to this component registration.
Obsolete, use DependsOn instead.
Obsolete, use DependsOn instead.
Obsolete, use DependsOn instead.
Specify custom dependencies using ForKey or ForKey.
You can pass ServiceOverrides to specify the components
this component should be resolved with.
Uses a dictionary of key/value pairs, to specify custom dependencies.
Use ServiceOverrides to specify the components
this component should be resolved with.
Uses an (anonymous) object as a dictionary, to specify custom dependencies.
Use ServiceOverrides to specify the components
this component should be resolved with.
Allows custom dependencies to by defined dyncamically.
Allows custom dependencies to by defined dynamically with releasing capability.
public ComponentRegistration<TService> DynamicParameters(DynamicParametersWithContextResolveDelegate resolve)
Allows custom dependencies to by defined dynamically with releasing capability.
Sets ExtendedProperties for this component.
Sets ExtendedProperties for this component.
Registers the service types on behalf of this component.
Registers the service types on behalf of this component.
Registers the service types on behalf of this component.
Registers the service types on behalf of this component.
public ComponentRegistration<TService> Forward<TSecondService, TThirdService, TFourthService, TFifthService>()
Registers the service types on behalf of this component.
Registers the service types on behalf of this component.
Assigns a conditional predication which must be satisfied.
The component will only be registered into the kernel
if this predicate is satisfied (or not assigned at all).
Sets the concrete type that implements the service to TImpl.
If not set, the ServiceType will be used as the implementation for this component.
Sets the concrete type that implements the service to type.
If not set, the ServiceType will be used as the implementation for this component.
Assigns an existing instance as the component for this registration.
Set the interceptors for this component.
Set the interceptors for this component.
public ComponentRegistration<TService> Interceptors<TInterceptor>() where TInterceptor : IInterceptor
Set the interceptor for this component.
public ComponentRegistration<TService> Interceptors<TInterceptor1, TInterceptor2>() where TInterceptor1 : IInterceptor where TInterceptor2 : IInterceptor
Set the interceptor for this component.
Set the interceptor for this component.
Change the name of this registration.
This will be the key for the component in the kernel.
If not set, the FullName of the Implementation
will be used as the key to register the component.
Stores a set of OnCreateActionDelegate<T> which will be invoked when the component
is created and before it's returned from the container.
With the overwrite.
Set configuration parameters with string or IConfiguration values.
Sets the interceptor selector for this component.
public ComponentRegistration<TService> SelectInterceptorsWith(Action<ItemRegistration<IInterceptorSelector>> selector)
Sets the interceptor selector for this component.
Override (some of) the services that this component needs.
Use ForKey to create an override.
Each key represents the service dependency of this component, for example the name of a constructor argument or a property.
The corresponding value is the key of an other component registered to the kernel, and is used to resolve the dependency.
To specify dependencies which are not services, use DependsOn
Override (some of) the services that this component needs, using a dictionary.
Each key represents the service dependency of this component, for example the name of a constructor argument or a property.
The corresponding value is the key of an other component registered to the kernel, and is used to resolve the dependency.
To specify dependencies which are not services, use DependsOn
Override (some of) the services that this component needs, using an (anonymous) object as a dictionary.
Each key represents the service dependency of this component, for example the name of a constructor argument or a property.
The corresponding value is the key of an other component registered to the kernel, and is used to resolve the dependency.
To specify dependencies which are not services, use DependsOn
Assigns a conditional predication which must not be satisfied.
The component will only be registered into the kernel
if this predicate is not satisfied (or not assigned at all).
public ComponentRegistration<TService> UsingFactory<U, V>(Converter<U, V> factory) where V : TService
Uses a factory to instantiate the component
public ComponentRegistration<TService> UsingFactoryMethod<TImpl>(Func<TImpl> factoryMethod) where TImpl : TService
Uses a factory method to instantiate the component.
public ComponentRegistration<TService> UsingFactoryMethod<TImpl>(Converter<IKernel, TImpl> factoryMethod) where TImpl : TService
Uses a factory method to instantiate the component.
public ComponentRegistration<TService> UsingFactoryMethod<TImpl>(Func<IKernel, ComponentModel, CreationContext, TImpl> factoryMethod) where TImpl : TService
Uses a factory method to instantiate the component.
public ComponentRegistration<TService> UsingFactoryMethod<TImpl>(Func<IKernel, CreationContext, TImpl> factoryMethod) where TImpl : TService
Uses a factory method to instantiate the component.