Search Results for

    Show / Hide Table of Contents

    Class CompareDatabaseResultHandler

    Inheritance
    object
    CompareDatabaseResultHandler
    CompareDatabaseResultHandler
    Implements
    IClientTaskResultHandler
    ITaskResultHandler
    Inherited Members
    CompareDatabaseResultHandler.DBCOMPARE_FILE_FOLDER
    CompareDatabaseResultHandler.ProcessRawResult(ITaskRunner, ServerTaskParameter, object)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Tasks
    Assembly: LemonEdge.ClientEntities.dll
    Syntax
    [ServerTaskResult("1B830EBD-35B2-4400-9A04-A21A48FC2CFB", ServerTaskResultType.Client)]
    public class CompareDatabaseResultHandler : CompareDatabaseResultHandler, IClientTaskResultHandler, ITaskResultHandler

    Constructors

    CompareDatabaseResultHandler(IEntityDescriptorFactory, IStorageServiceFactory)

    Declaration
    public CompareDatabaseResultHandler(IEntityDescriptorFactory entityDescriptorFactory, IStorageServiceFactory storageServiceFactory)
    Parameters
    Type Name Description
    IEntityDescriptorFactory entityDescriptorFactory
    IStorageServiceFactory storageServiceFactory

    Methods

    Init(IModelLayoutCommon)

    Initializes the handler with the host it is running within

    Declaration
    public void Init(IModelLayoutCommon host)
    Parameters
    Type Name Description
    IModelLayoutCommon host

    The host this handler is running within

    ProcessResult(IServerTask, IServerTaskData)

    Provides the handler a mechanism for handling the result from the specified completed task.

    Declaration
    public Task ProcessResult(IServerTask task, IServerTaskData data)
    Parameters
    Type Name Description
    IServerTask task

    A task that has completed its processing and stored its results in IServerTask.TaskResult

    IServerTaskData data

    The data for the task result

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    ProcessResult(long, ServerTaskParameter, CompareDatabaseResults, UserInfo, StringBuilder)

    Provides the opportunity to handle the result. For this server implementation the file is written to storage IStorageService

    A client override of this behaviour could take the results and directly display them to the user instead of writing them to any storage

    Declaration
    public override Task ProcessResult(long accountID, ServerTaskParameter parameter, CompareDatabaseResults result, UserInfo user, StringBuilder uncompressedFile)
    Parameters
    Type Name Description
    long accountID

    The current account the task was running within

    ServerTaskParameter parameter

    The original CompareDatabaseParameters the task was initialized with

    CompareDatabaseResults result

    The result of the task process IServerTask.TaskResult

    UserInfo user

    The user the task was running under

    StringBuilder uncompressedFile
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    CompareDatabaseResultHandler.ProcessResult(long, ServerTaskParameter, CompareDatabaseResults, UserInfo, StringBuilder)

    Implements

    IClientTaskResultHandler
    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.