Class ReflectionCallParameterBindings
The one statement of which parameters of a reflected method take one of a Reflection Call Task's stored string arguments, and in which order.
Inherited Members
Namespace: Serenity.Tasking.Application.Utils
Assembly: Serenity.Global.Application.dll
Syntax
public sealed class ReflectionCallParameterBindings
Properties
ArgumentSlotCount
How many stored string arguments the method reads.
Declaration
public int ArgumentSlotCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Parameters
One binding per parameter of the method, in parameter order.
Declaration
public IReadOnlyList<ReflectionCallParameterBinding> Parameters { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<ReflectionCallParameterBinding> |
Methods
For(IReadOnlyList<ParameterInfo>, Func<Type, bool>)
Classifies each parameter of a reflected method, in order, and numbers the ones that read a stored string argument.
Declaration
public static ReflectionCallParameterBindings For(IReadOnlyList<ParameterInfo> parameters, Func<Type, bool> isSuppliedService)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<ParameterInfo> | parameters | The method's parameters, in declaration order. |
| Func<Type, bool> | isSuppliedService | Whether the pipeline holds a service of the given type for tasks; null when it holds none. |
Returns
| Type | Description |
|---|---|
| ReflectionCallParameterBindings | The bindings: a CancellationToken and a supplied service take no stored argument, every other parameter takes the next one. |