Search Results for

    Show / Hide Table of Contents

    Class TriggerActionResultHandler

    The result handler that takes a trigger action task ( UNIQUE_TASK_ID) result and provides a mechanism for the client to respond to it

    Inheritance
    object
    TriggerActionResultHandler
    Implements
    ITaskResultHandler
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Tasks.Results
    Assembly: LemonEdge.API.dll
    Syntax
    [ServerTaskResult("12737356-A000-436B-8640-C18406499341", ServerTaskResultType.Server)]
    public class TriggerActionResultHandler : ITaskResultHandler

    Constructors

    TriggerActionResultHandler()

    Declaration
    public TriggerActionResultHandler()

    Methods

    ProcessRawResult(ITaskRunner, ServerTaskParameter, object)

    Takes the direct output of the trigger action task and converts it to a TriggerActionResults

    Declaration
    public 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 TriggerActionParameter parameter the task was run with

    object result

    The result returned from processing the task, which is a List of entity type ids and instance ids

    Returns
    Type Description
    Task<ServerTaskResult>

    A TriggerActionResults holding the results of the trigger action task ( UNIQUE_TASK_ID)

    ProcessResult(long, ServerTaskParameter, TriggerActionResults, UserInfo, List<(Guid TypeID, Guid ID)>)

    Provides the opportunity to handle the result. For this server implementation nothing is done

    A client override of this behaviour could take the results and directly display the items that had actions triggered against them

    Declaration
    public virtual Task ProcessResult(long accountID, ServerTaskParameter parameter, TriggerActionResults result, UserInfo user, List<(Guid TypeID, Guid ID)> triggeredItems)
    Parameters
    Type Name Description
    long accountID

    The current account the task was running within

    ServerTaskParameter parameter

    The original TriggerActionParameter the task was initialized with

    TriggerActionResults result

    The result of the task process IServerTask.TaskResult

    UserInfo user

    The user the task was running under

    List<(Guid TypeID, Guid ID)> triggeredItems

    A list of entity type ids and instance ids of the items that had actions triggered aginast them

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Implements

    ITaskResultHandler

    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)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.