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: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
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 propertyServiceMiddlewareSources
Gets the set of service middleware sources that are used by the registry.
Public propertySources
Gets the registration sources that are used by the registry.
Top
Methods
  NameDescription
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 methodRegistrationsFor
Selects from the available registrations after ensuring that any dynamic registration sources that may provide service have been invoked.
Public methodServiceMiddlewareFor
Gets the set of custom service middleware for the specified service.
Public methodServiceRegistrationsFor
Selects from the available service 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.
Public methodTryGetServiceRegistration
Attempts to find a default service registration for the specified service.
Top
See Also