Allows the application context to inject configuration parameter into context objects.
Default constructor
public Void ParameterInjector()
Parameter service implementation.
public IParameterService ParameterService { get; set; }
Gets the value of the property to inject.
public Object GetValue(propertyName, args)
The value of the parameter.
Name | Type | Summary |
---|---|---|
propertyName | String | Name of the property beeing injected. |
args | IDictionary<String, String> | Arguments for this injector: name: The name of the configuration parameter. type: Type of the parameter, one of: Boolean, Integer, String. |
Type | Summary |
---|---|
MissingRequiredPropertyException | Thrown when ParameterService was not set. |
ArgumentNullOrEmptyException | Thrown when args does not contains all the neccesary data. |
ParameterDoesNotExistException | Thrown when the requested parameter does not exists. |
WrongParameterTypeException | Thrown when the parameter is of different type of the requested type. |
In this document