Class ParameterChecker
Inherited Members
Namespace: Xareus.Scenarios.Utilities
Assembly: Xareus.Scenarios.dll
Syntax
public static class ParameterChecker
Methods
CheckParameters(object, IDictionary<string, Parameter>, ContextHolder)
Extract the parameters and their values from NameValueListMap. Note that arrays and collections and dictionaries will be empty (not null) if no matching parameter has been found Consider using FunctionManager.SetFunctionParameters instead for an optimized way to set parameters
Declaration
public static void CheckParameters(object obj, IDictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | |
| IDictionary<string, Parameter> | parameters | |
| ContextHolder | contexts |
See Also
CheckParameters(object, IDictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Extract the parameters and their values from NameValueListMap. Note that arrays and collections and dictionaries will be empty (not null) if no matching parameter has been found Consider using FunctionManager.SetFunctionParameters instead for an optimized way to set parameters
Declaration
[Obsolete("Use CheckParameters(object, IDictionary<string, Parameter>, ContextHolder) instead.")]
public static void CheckParameters(object obj, IDictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | |
| IDictionary<string, Parameter> | parameters | |
| IContext | externalContext | |
| IContext | scenarioContext | |
| IContext | sequenceContext | |
| IContext | eventContext |
See Also
CheckParameters(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, ContextHolder)
Extract the parameters and their values from parameters. Note that arrays and collections and dictionaries will be empty (not null) if no matching parameter has been found
Declaration
public static void CheckParameters(object obj, FieldsAndPropertiesContainer fieldsAndProperties, IDictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | |
| FieldsAndPropertiesContainer | fieldsAndProperties | The fields and properties to fill |
| IDictionary<string, Parameter> | parameters | |
| ContextHolder | contexts | The contexts to get variables from |
CheckParameters(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Extract the parameters and their values from parameters. Note that arrays and collections and dictionaries will be empty (not null) if no matching parameter has been found
Declaration
[Obsolete("Use CheckParameters(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, ContextHolder) instead.")]
public static void CheckParameters(object obj, FieldsAndPropertiesContainer fieldsAndProperties, IDictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | |
| FieldsAndPropertiesContainer | fieldsAndProperties | The fields and properties to fill |
| IDictionary<string, Parameter> | parameters | |
| IContext | externalContext | |
| IContext | scenarioContext | |
| IContext | sequenceContext | |
| IContext | eventContext |
CreateContextVariables(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, ContextHolder)
Create context variables from the parameters and their values.
Declaration
public static void CreateContextVariables(object obj, FieldsAndPropertiesContainer fieldsAndProperties, IDictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | |
| FieldsAndPropertiesContainer | fieldsAndProperties | |
| IDictionary<string, Parameter> | parameters | |
| ContextHolder | contexts |
CreateContextVariables(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Create context variables from the parameters and their values.
Declaration
[Obsolete("Use CreateContextVariables(object, FieldsAndPropertiesContainer, IDictionary<string, Parameter>, ContextHolder) instead.")]
public static void CreateContextVariables(object obj, FieldsAndPropertiesContainer fieldsAndProperties, IDictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | |
| FieldsAndPropertiesContainer | fieldsAndProperties | |
| IDictionary<string, Parameter> | parameters | |
| IContext | externalContext | |
| IContext | scenarioContext | |
| IContext | sequenceContext | |
| IContext | eventContext |
GetFieldsAndPropertiesWithContextVariable(Type)
Get the fields and properties of the given type that hold a ContextVariableAttribute or are of the ContextVariable type
Declaration
public static FieldsAndPropertiesContainer GetFieldsAndPropertiesWithContextVariable(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type to check |
Returns
| Type | Description |
|---|---|
| FieldsAndPropertiesContainer |
SetParametersFromMembers(Function, object)
Declaration
public static void SetParametersFromMembers(Function function, object instance)
Parameters
| Type | Name | Description |
|---|---|---|
| Function | function | |
| object | instance |