Click or drag to resize

IDependencyTrackingResolveOperation Interface

The interface indicating that an IResolveOperation supports dependency tracking. Required by middleware that must understand the dependency tree.

Namespace:  Autofac.Core.Resolving
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public interface IDependencyTrackingResolveOperation : IResolveOperation

The IDependencyTrackingResolveOperation type exposes the following members.

Properties
  NameDescription
Public propertyActiveRequestContext
Gets the active resolve request.
(Inherited from IResolveOperation.)
Public propertyCurrentScope
Gets the current lifetime scope of the operation; based on the most recently executed request.
(Inherited from IResolveOperation.)
Public propertyDiagnosticSource
Gets the DiagnosticListener for the operation.
(Inherited from IResolveOperation.)
Public propertyInitiatingRequest
Gets the ResolveRequest that initiated the operation. Other nested requests may have been issued as a result of this one.
(Inherited from IResolveOperation.)
Public propertyInProgressRequests
Gets the set of all in-progress requests on the request stack.
(Inherited from IResolveOperation.)
Public propertyRequestDepth
Gets the current request depth.
(Inherited from IResolveOperation.)
Public propertyRequestStack
Gets the modifiable active request stack.
Top
Methods
  NameDescription
Public methodEnterNewDependencyDetectionBlock
Enter a new dependency chain block where subsequent requests inside the operation are allowed to repeat registrations from before the block.
Public methodGetOrCreateInstance
Get or create and share an instance of the requested service in the currentOperationScope.
(Inherited from IResolveOperation.)
Top
Events
  NameDescription
Public eventCurrentOperationEnding
Raised when the entire operation is complete.
(Inherited from IResolveOperation.)
Public eventResolveRequestBeginning
Raised when a resolve request starts.
(Inherited from IResolveOperation.)
Top
See Also