Click or drag to resize

IComponentRegistryBuilder Interface

Used to build a IComponentRegistry.

Namespace:  Autofac.Core.Registration
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public interface IComponentRegistryBuilder : IDisposable

The IComponentRegistryBuilder type exposes the following members.

Properties
  NameDescription
Public propertyProperties
Gets the set of properties used during component registration.
Top
Methods
  NameDescription
Public methodAddRegistrationSource
Add a registration source that will provide registrations on-the-fly.
Public methodAddServiceMiddlewareSource
Add a source of service middleware that will provide service registrations on-the-fly.
Public methodBuild
Create a new IComponentRegistry with all the component registrations that have been made.
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 methodRegisterServiceMiddleware
Register a piece of service middleware that will be invoked for all registrations of a service when they are resolved.
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