Class CustomObjectSaveResultProcessor
Inheritance
Inherited Members
Namespace: LemonEdge.Client.Core.Tasks
Assembly: LemonEdge.ClientEntities.dll
Syntax
[ServerTaskResult("1B7A8C35-2B17-453D-A422-1A3193679332", ServerTaskResultType.Client)]
public class CustomObjectSaveResultProcessor : OpenOrRefreshResultItem<CustomObjectSaveProcessResult>, IClientTaskResultHandler, ITaskResultHandler
Constructors
CustomObjectSaveResultProcessor(IConnectionUpgraderNotifier, IEntityDescriptorFactory)
Declaration
public CustomObjectSaveResultProcessor(IConnectionUpgraderNotifier upgraderNotifier, IEntityDescriptorFactory entityDescriptorFactory)
Parameters
Type | Name | Description |
---|---|---|
IConnectionUpgraderNotifier | upgraderNotifier | |
IEntityDescriptorFactory | entityDescriptorFactory |
Methods
ConvertRawResultIntoResultType(ServerTaskParameter, object)
Must be implemented by a derived type to convert the raw task result into type CustomObjectSaveProcessResult
Declaration
protected override Task<CustomObjectSaveProcessResult> ConvertRawResultIntoResultType(ServerTaskParameter parameter, object rawResult)
Parameters
Type | Name | Description |
---|---|---|
ServerTaskParameter | parameter | The parameter that was used to run the task |
object | rawResult | The raw result of running the task |
Returns
Type | Description |
---|---|
Task<CustomObjectSaveProcessResult> | A conversion of the raw task result into type CustomObjectSaveProcessResult |
Overrides
GetItemToOpenOrRefresh(CustomObjectSaveProcessResult)
Should be implemented by a derived type to retrieve the entity type/id for a single item that must be opened or refreshed by this handler
You must override either the GetItemsToOpenOrRefresh(T) or the GetItemToOpenOrRefresh(T) method
Declaration
protected override (Guid TypeID, Guid ID) GetItemToOpenOrRefresh(CustomObjectSaveProcessResult resultInfo)
Parameters
Type | Name | Description |
---|---|---|
CustomObjectSaveProcessResult | resultInfo | The result of the task that this is handling |
Returns
Type | Description |
---|---|
(Guid TypeID, Guid ID) | The single entity type/id item that should be handled by this class |
Overrides
ProcessPriorToOpeningResult(CustomObjectSaveProcessResult)
Provides any inheriting implementation the chance to process the rseult before this handler will open, or refresh, the result items
Declaration
protected override void ProcessPriorToOpeningResult(CustomObjectSaveProcessResult param)
Parameters
Type | Name | Description |
---|---|---|
CustomObjectSaveProcessResult | param | The parameter that holds the result of the task to process |