Interface IDependencyResolver
Specifies the contract how to resolve a dependency (ParameterInfo or PropertyInfo).
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public interface IDependencyResolver
Properties
Id
Name of this resolver.
Declaration
object Id { get; }
Property Value
Type | Description |
---|---|
Object |
Methods
Resolve(ParameterExpression, DependencyDescriptor, Object, Object, CallNextDelegate<Object, Expression>)
Tries to resolve a dependency.
Declaration
Expression Resolve(ParameterExpression injector, DependencyDescriptor dependency, object userData, object context, CallNextDelegate<object, Expression> next)
Parameters
Type | Name | Description |
---|---|---|
ParameterExpression | injector | The IInjector instance to be used to resolve the dependency. |
DependencyDescriptor | dependency | The dependency descriptor. |
Object | userData | Optional data, passed by the end-user. |
Object | context | Optional data, passed by the previous resolver. |
CallNextDelegate<Object, Expression> | next | Invokes the next resolver. |
Returns
Type | Description |
---|---|
Expression | The resolution of the requiested dependency, for instance
|