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
Implements
Inherited Members
Namespace: LemonEdge.API.Tasks.Results
Assembly: API.dll
Syntax
[ServerTaskResult("D60A2AD9-C3DD-4FAF-BC44-1D2889565F83", ServerTaskResultType.Server)]
public class ResetSystemRolesHandler : ITaskResultHandler
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 |
System.Object | result | The result returned from processing the task, which is null |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServerTaskResult> | A ResetSystemRolesResults holding the results of the reset system roles task (UNIQUE_TASK_ID) |
ProcessResult(String, Int64, 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(string dbAlias, long accountID, ServerTaskParameter parameter, ResetSystemRolesResults result, UserInfo user)
Parameters
Type | Name | Description |
---|---|---|
System.String | dbAlias | The current connected database alias the task is running against. |
System.Int64 | 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 |
UserInfo | user | The user the task was running under |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |