Search Results for

    Show / Hide Table of Contents

    Class SQLWrapperDatasetUsageResultHandler

    The result handler that takes a data import task (UNIQUE_TASK_ID) result and provides the client an opportunity to process it. The server implementation does nothing with the results themselves

    Inheritance
    object
    SQLWrapperDatasetUsageResultHandler
    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("5641134D-60FE-4712-B18B-4E3F4C5B719A", ServerTaskResultType.Server)]
    public class SQLWrapperDatasetUsageResultHandler : ITaskResultHandler

    Constructors

    SQLWrapperDatasetUsageResultHandler()

    Declaration
    public SQLWrapperDatasetUsageResultHandler()

    Methods

    ProcessRawResult(ITaskRunner, ServerTaskParameter, object)

    Takes the direct output of the import data task and converts it to a SQLWrapperDatasetUsageResult

    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 SQLWrapperDatasetUsageParameter parameter the task was run with

    object result

    The result returned from processing the task, which is a list of SQLWrapperDatasetReferenceRoot

    Returns
    Type Description
    Task<ServerTaskResult>

    A ServerTaskResult holding the results of the import data task ( UNIQUE_TASK_ID)

    ProcessResult(long, ServerTaskParameter, SQLWrapperDatasetUsageResult, UserInfo, IEntityRetriever, List<SQLWrapperDatasetReferenceRoot>, bool)

    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 open imported items, or the task for details in the case of import failures

    Declaration
    protected virtual Task ProcessResult(long accountID, ServerTaskParameter parameter, SQLWrapperDatasetUsageResult result, UserInfo user, IEntityRetriever retriever, List<SQLWrapperDatasetReferenceRoot> importInfo, bool createdTasksProcessed)
    Parameters
    Type Name Description
    long accountID

    The current account the task was running within

    ServerTaskParameter parameter

    The original SQLWrapperDatasetUsageResult the task was initialized with

    SQLWrapperDatasetUsageResult result

    The result of the task process IServerTask.TaskResult

    UserInfo user

    The user the task was running under

    IEntityRetriever retriever

    A context for fetching details

    List<SQLWrapperDatasetReferenceRoot> importInfo

    The results of the import task

    bool createdTasksProcessed

    Indicates if any tasks created during importing the data (specified with SQLWrapperDatasetReferenceRoot.AutoCreatedTaskID) have already been processed

    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.