logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface ITaskDefinition

    Interface representing a task definition with methods to build tasks.

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

    Properties

    Criticality

    Criticality level of the task.

    Declaration
    TaskCriticality Criticality { get; }
    Property Value
    Type Description
    TaskCriticality

    The criticality level.

    Weight

    Weight of the task, influencing its scheduling and resource allocation.

    Declaration
    float Weight { get; }
    Property Value
    Type Description
    float

    The weight of the task.

    Methods

    Build(TaskBuildContext)

    Builds and returns an instance of ITask based on the definition.

    Declaration
    ITask Build(TaskBuildContext context)
    Parameters
    Type Name Description
    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