Interface IReflectionCallTaskDefinition
Interface for defining a task that invokes a method via reflection.
Inherited Members
Namespace: Serenity.Tasking.Application.Interfaces
Assembly: Serenity.Global.Application.dll
Syntax
public interface IReflectionCallTaskDefinition : ITaskDefinition, IFoundationSettings
Properties
IsStatic
Indicates whether the method to invoke is static.
Declaration
bool IsStatic { get; }
Property Value
| Type | Description |
|---|---|
| bool | True if the method is static; otherwise, false. |
MethodName
The name of the method to invoke.
Declaration
string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string | The name of the method. |
ResolveFromServices
If true, the method's parameters will be resolved from the service container.
Declaration
bool ResolveFromServices { get; }
Property Value
| Type | Description |
|---|---|
| bool | True to resolve parameters from services; otherwise, false. |
StringArgs
List of string arguments to pass to the method.
Declaration
IReadOnlyList<string> StringArgs { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> | A list of string arguments. |
TypeName
The name of the type containing the method to invoke.
Declaration
string TypeName { get; }
Property Value
| Type | Description |
|---|---|
| string | The name of the type. |