Search Results for

    Show / Hide Table of Contents

    Interface ITaskResultHandler

    An interface that can be implemented to handle the result returned from ProcessTask(CancellationToken) for every task implementation in the system

    Must be marked with the ServerTaskResultAttribute to specify which type of task it handles results for

    Namespace: LemonEdge.API.Core.Tasks
    Assembly: LemonEdge.API.dll
    Syntax
    public interface ITaskResultHandler

    Methods

    ProcessRawResult(ITaskRunner, ServerTaskParameter, object)

    Processes the result from an appropriate ProcessTask(CancellationToken) function call for the task this implementation is marked as handling with the ServerTaskResultAttribute

    Declaration
    Task<ServerTaskResult> ProcessRawResult(ITaskRunner runner, ServerTaskParameter parameter, object result)
    Parameters
    Type Name Description
    ITaskRunner runner

    The task runner this task has been running in

    ServerTaskParameter parameter

    The initial parameter the task was run with

    object result

    The result returned from processing the task

    Returns
    Type Description
    Task<ServerTaskResult>

    A conversion from the result of the ProcessTask(CancellationToken) call to a ServerTaskResult to allow clients to interact with the result from tasks running on services

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    ServerTaskResultAttribute
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.