Click or drag to resize

IComponentRegistry Interface

Provides component registrations according to the services they provide.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public interface IComponentRegistry : IDisposable

The IComponentRegistry type exposes the following members.

Properties
  NameDescription
Public propertyHasLocalComponents
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.
Public propertyProperties
Gets the set of properties used during component registration.
Public propertyRegistrations
Gets the set of registered components.
Public propertySources
Gets the registration sources that are used by the registry.
Top
Methods
  NameDescription
Public methodAddRegistrationSource
Add a registration source that will provide registrations on-the-fly.
Public methodDecoratorsFor
Selects all available decorator registrations that can be applied to the specified registration.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodIsRegistered
Determines whether the specified service is registered.
Public methodRegister(IComponentRegistration)
Register a component.
Public methodRegister(IComponentRegistration, Boolean)
Register a component.
Public methodRegistrationsFor
Selects from the available registrations after ensuring that any dynamic registration sources that may provide service have been invoked.
Public methodTryGetRegistration
Attempts to find a default registration for the specified service.
Top
Events
  NameDescription
Public eventRegistered
Fired whenever a component is registered - either explicitly or via a IRegistrationSource.
Public eventRegistrationSourceAdded
Fired when an IRegistrationSource is added to the registry.
Top
See Also