Open sandboxFocus

Interface IParameterPullStrategy

Interface used by DefaultDependencyInjectionStrategy to introduce and pull a constructor parameter. Implementations must be serializable, as they implement ICompileTimeSerializable.

Namespace: Metalama.Extensions.DependencyInjection.Implementation
Assembly: Metalama.Extensions.DependencyInjection.dll
Syntax
public interface IParameterPullStrategy : IPullStrategy, ICompileTimeSerializable

Methods

Name Description
GetExistingParameter(IConstructor)

Gets an existing parameter that satisfies the dependency, if any.

GetNewParameter(IConstructor)

Gets a ParameterSpecification object specifying how to create a parameter. This method is called if GetExistingParameter(IConstructor) returns null.

Extension Methods