Table of Contents

Class ResolvedParameter

Namespace
Unity.Injection
Assembly
Unity.Abstractions.dll

A class that stores a name and type, and generates a resolver object that resolves the parameter via the container.

public class ResolvedParameter : ParameterBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>
Inheritance
ResolvedParameter
Implements
Derived
Inherited Members
Extension Methods

Constructors

ResolvedParameter()

public ResolvedParameter()

ResolvedParameter(string)

Construct a new ResolvedParameter that resolves the given type and name.

public ResolvedParameter(string name)

Parameters

name string

Name to use when resolving parameter.

ResolvedParameter(Type)

Construct a new ResolvedParameter that resolves to the given type.

public ResolvedParameter(Type parameterType)

Parameters

parameterType Type

Type of this parameter.

ResolvedParameter(Type, string)

Construct a new ResolvedParameter that resolves the given type and name.

public ResolvedParameter(Type parameterType, string name)

Parameters

parameterType Type

Type of this parameter.

name string

Name to use when resolving parameter.

Methods

GetResolver<TContext>(ParameterInfo)

public ResolveDelegate<TContext> GetResolver<TContext>(ParameterInfo info) where TContext : IResolveContext

Parameters

info ParameterInfo

Returns

ResolveDelegate<TContext>

Type Parameters

TContext

GetResolver<TContext>(Type)

public ResolveDelegate<TContext> GetResolver<TContext>(Type type) where TContext : IResolveContext

Parameters

type Type

Returns

ResolveDelegate<TContext>

Type Parameters

TContext