C# Class Ninject.Parameters.WeakConstructorArgument

Overrides the injected value of a constructor argument.
Inheritance: Parameter, IConstructorArgument
Mostra file Open project: ninject/Ninject

Public Methods

Method Description
AppliesToTarget ( IContext context, ITarget target ) : bool

Determines if the parameter applies to the given target.

Only one parameter may return true.

WeakConstructorArgument ( string name, object value ) : System

Initializes a new instance of the WeakConstructorArgument class.

WeakConstructorArgument ( string name, object value, bool shouldInherit ) : System

Initializes a new instance of the WeakConstructorArgument class.

Method Details

AppliesToTarget() public method

Determines if the parameter applies to the given target.
Only one parameter may return true.
public AppliesToTarget ( IContext context, ITarget target ) : bool
context IContext The context.
target ITarget The target.
return bool

WeakConstructorArgument() public method

Initializes a new instance of the WeakConstructorArgument class.
public WeakConstructorArgument ( string name, object value ) : System
name string The name of the argument to override.
value object The value to inject into the property.
return System

WeakConstructorArgument() public method

Initializes a new instance of the WeakConstructorArgument class.
public WeakConstructorArgument ( string name, object value, bool shouldInherit ) : System
name string The name of the argument to override.
value object The value to inject into the property.
shouldInherit bool Whether the parameter should be inherited into child requests.
return System