logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ReflectionCallTaskDto

    Data Transfer Object for defining a task that invokes a method via reflection.

    Inheritance
    object
    TaskDefinitionDto
    ReflectionCallTaskDto
    Implements
    IFoundationSettings
    Inherited Members
    TaskDefinitionDto.Id
    TaskDefinitionDto.Guid
    TaskDefinitionDto.Criticality
    TaskDefinitionDto.Weight
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tasking.Application.DTO
    Assembly: Serenity.Global.Application.dll
    Syntax
    public class ReflectionCallTaskDto : TaskDefinitionDto, IFoundationSettings
    Remarks

    This DTO is used to configure tasks that call methods dynamically at runtime using reflection.

    Constructors

    ReflectionCallTaskDto()

    Declaration
    public ReflectionCallTaskDto()

    Properties

    IsStatic

    Indicates whether the method to invoke is static.

    Declaration
    public bool IsStatic { get; set; }
    Property Value
    Type Description
    bool

    True if the method is static; otherwise, false.

    MethodName

    The name of the method to invoke.

    Declaration
    public string MethodName { get; set; }
    Property Value
    Type Description
    string

    The name of the method.

    MethodParamTypes

    List of parameter type names for the method to invoke.

    Declaration
    public List<string> MethodParamTypes { get; set; }
    Property Value
    Type Description
    List<string>

    A list of parameter type names.

    ResolveFromServices

    If true, the method's parameters will be resolved from the service container.

    Declaration
    public bool ResolveFromServices { get; set; }
    Property Value
    Type Description
    bool

    True to resolve parameters from services; otherwise, false.

    StringArgs

    List of string arguments to pass to the method.

    Declaration
    public List<string> StringArgs { get; set; }
    Property Value
    Type Description
    List<string>

    A list of string arguments.

    TypeName

    The name of the type containing the method to invoke.

    Declaration
    public string TypeName { get; set; }
    Property Value
    Type Description
    string

    The name of the type.

    Implements

    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved