Click or drag to resize

IContainerAwareComponent Interface

Note: This API is now obsolete.

Marks a module as container-aware (for the purposes of attaching to diagnostic events.)

Namespace:  Autofac.Core.Diagnostics
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
[ObsoleteAttribute("Use the more general Autofac.IStartable interface instead. The IContainer parameter can be emulated when implementing IStartable by taking a dependency on IComponentContext or ILifetimeScope.", 
	true)]
public interface IContainerAwareComponent

The IContainerAwareComponent type exposes the following members.

Methods
  NameDescription
Public methodSetContainer
Initialise the module with the container into which it is being registered.
Top
See Also