logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface ITaskFactory

    Factory interface for creating ITask instances from TaskDefinitionDto objects.

    Namespace: Serenity.Tasking.Application.Interfaces
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface ITaskFactory

    Methods

    Create(TaskDefinitionDto, TaskBuildContext)

    Creates an ITask instance based on the provided TaskDefinitionDto and TaskBuildContext.

    Declaration
    ITask Create(TaskDefinitionDto dto, TaskBuildContext context)
    Parameters
    Type Name Description
    TaskDefinitionDto dto

    The data transfer object containing task definition details.

    TaskBuildContext context

    The context used for building the task.

    Returns
    Type Description
    ITask

    An instance of ITask.

    In this article
    © 2026 Serenity. All Rights Reserved