Delegate that allows intercepting calls to GetInstance(Type) and
GetInstance.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
public delegate Object ResolveInterceptor( InitializationContext context, Func<Object> instanceProducer )
Parameters
- context
- Type: SimpleInjector.AdvancedInitializationContext
Contextual information about the to be created object. - instanceProducer
- Type: SystemFuncObject
A delegate that produces the actual instance according to its lifestyle settings.
Return Value
Type: ObjectThe instance that is returned from instanceProducer or an intercepted instance.
See Also