The component registry provides services directly from components,
and also uses IRegistrationSource to generate components
on-the-fly or as adapters for other components. A component registry
is normally used through a ContainerBuilder, and not
directly by application code.
Constructors
-
Component
Registry() Initializes a new instance of the ComponentRegistry class.
Methods
-
Add
Registration(IComponent protectedvirtualRegistration, Boolean, Boolean) -
Add
Registration sealed Add a registration source that will provide registrations on-the-fly.Source(IRegistration Source) -
Decorators
For(IComponent sealedRegistration) - Dispose(Boolean) protectedvirtual Releases unmanaged and - optionally - managed resources.
-
Is
Registered(Service) sealed Determines whether the specified service is registered. -
Register(IComponent
Registration) sealed Register a component. -
Register(IComponent
Registration, sealed Register a component.Boolean) -
Registrations
For(Service) sealed Selects from the available registrations after ensuring that any dynamic registration sources that may provide service have been invoked. -
Try
Get sealed Attempts to find a default registration for the specified service.Registration(Service, IComponent Registration&)
Properties
-
Has
Local sealed Gets a value indicating whether the registry contains its own components. True if the registry contains its own components; false if it is forwarding registrations from another external registry.Components - Properties sealed Gets the set of properties used during component registration.
- Registrations sealed Gets the registered components.
- Sources sealed Gets the registration sources that are used by the registry.
Events
- Registered sealed Fired whenever a component is registered - either explicitly or via a IRegistrationSource.
-
Registration
Source sealed Fired when an IRegistrationSource is added to the registry.Added