Struct InvokeResult
- Namespace
- Scaleout.Modules.Abstractions
- Assembly
- Scaleout.Modules.Abstractions.dll
Result returned from a ApiProcessor.ProcessInvoke implementation.
public readonly struct InvokeResult
- Inherited Members
Constructors
InvokeResult(ProcessingResult, byte[]?)
Initializes a new instance of the InvokeResult class, representing the result of an API method invocation.
public InvokeResult(ProcessingResult processingResult, byte[]? resultBytes)
Parameters
processingResult
ProcessingResultIndicates whether modifications to the sossObject parameter should be persisted or whether the object should be removed. Use NoUpdate to indicate that the sossObject instance was not modified and does not need to be updated in the ScaleOut service. NoUpdate should not be used if the object was modified in any way. If you are unsure of whether the sossObject was modified, use DoUpdate.
resultBytes
byte[]Data to return to the remote caller of the Invoke operation.
Properties
ProcessingResult
Indicates whether modifications to the sossObject parameter should be persisted or whether the object should be removed.
public ProcessingResult ProcessingResult { get; init; }
Property Value
Remarks
Set to NoUpdate to indicate that the sossObject instance was not modified and does not need to be updated in the ScaleOut service. NoUpdate should not be used if the object was modified in any way. If you are unsure of whether the sossObject was modified, set to DoUpdate.
ResultBytes
Data to return to the remote caller of the Invoke operation.
public byte[]? ResultBytes { get; init; }
Property Value
- byte[]