Search Results for

    Show / Hide Table of Contents

    Class CompareDatabaseResultHandler

    The result handler that takes a database comparer task ( UNIQUE_TASK_ID) result and stores the file in the storage system for retrieval by anyone viewing the task

    Inheritance
    object
    CompareDatabaseResultHandler
    CompareDatabaseResultHandler
    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("1B830EBD-35B2-4400-9A04-A21A48FC2CFB", ServerTaskResultType.Server)]
    public class CompareDatabaseResultHandler : ITaskResultHandler

    Constructors

    CompareDatabaseResultHandler(IEntityDescriptorFactory, IStorageServiceFactory)

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

    Fields

    DBCOMPARE_FILE_FOLDER

    The folder used to store the database comparrison file in

    Declaration
    public const string DBCOMPARE_FILE_FOLDER = "DBCompare"
    Field Value
    Type Description
    string

    Methods

    ProcessRawResult(ITaskRunner, ServerTaskParameter, object)

    Takes the direct output of the database comparrison task and converts it to a CompareDatabaseResults

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

    object result

    The result returned from processing the task, which is a string builder holding any differences found between the databases

    Returns
    Type Description
    Task<ServerTaskResult>

    A CompareDatabaseResults holding the results of the database comparer task ( UNIQUE_TASK_ID)

    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 virtual Task ProcessResult(long accountID, ServerTaskParameter parameter, CompareDatabaseResults result, UserInfo user, StringBuilder compressedFile)
    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 compressedFile

    The file results

    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.