Search Results for

    Show / Hide Table of Contents

    Class ResetSystemRolesHandler

    The result handler that takes a reset system roles task ( UNIQUE_TASK_ID) result and provides a mechanism for the client to respond to it

    The server implementation of this does not actually do anything, but the client implementation has an opportunity to prompt the user to perform a refresh all to load the changes in from the server

    Inheritance
    object
    ResetSystemRolesHandler
    ResetSystemRolesHandler
    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("D60A2AD9-C3DD-4FAF-BC44-1D2889565F83", ServerTaskResultType.Server)]
    public class ResetSystemRolesHandler : ITaskResultHandler

    Constructors

    ResetSystemRolesHandler()

    Declaration
    public ResetSystemRolesHandler()

    Methods

    ProcessRawResult(ITaskRunner, ServerTaskParameter, object)

    Takes the direct output of the reset system roles task and converts it to a ResetSystemRolesResults

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

    object result

    The result returned from processing the task, which is null

    Returns
    Type Description
    Task<ServerTaskResult>

    A ResetSystemRolesResults holding the results of the reset system roles task ( UNIQUE_TASK_ID)

    ProcessResult(long, ServerTaskParameter, ResetSystemRolesResults, UserInfo)

    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 prompt the user to perform a refresh all to load the changes into the system

    Declaration
    public virtual Task ProcessResult(long accountID, ServerTaskParameter parameter, ResetSystemRolesResults result, UserInfo user)
    Parameters
    Type Name Description
    long accountID

    The current account the task was running within

    ServerTaskParameter parameter

    The original ResetSystemRolesParameters the task was initialized with

    ResetSystemRolesResults result

    The result of the task process IServerTask.TaskResult

    UserInfo user

    The user the task was running under

    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.