Class InjectionParameter
A class that holds on to the given value and provides the required IResolve when the container is configured.
Inherited Members
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class InjectionParameter : ParameterBase, IEquatable<Type>, IResolve
Constructors
| Improve this Doc View SourceInjectionParameter(Object)
Create an instance of InjectionParameter that stores the given value, using the runtime type of that value as the type of the parameter.
Declaration
public InjectionParameter(object value)
Parameters
Type | Name | Description |
---|---|---|
Object | value | Value to be injected for this parameter. |
InjectionParameter(Type, Object)
Create an instance of InjectionParameter that stores the given value, associated with the given type.
Declaration
public InjectionParameter(Type parameterType, object parameterValue)
Parameters
Type | Name | Description |
---|---|---|
Type | parameterType | Type of the parameter. |
Object | parameterValue | InjectionParameterValue of the parameter |
Methods
| Improve this Doc View SourceResolve<TContext>(ref TContext)
Declaration
public object Resolve<TContext>(ref TContext context)
where TContext : IResolveContext
Parameters
Type | Name | Description |
---|---|---|
TContext | context |
Returns
Type | Description |
---|---|
Object |
Type Parameters
Name | Description |
---|---|
TContext |