LeaseWorkOutcome
Namespace: Meshmakers.Octo.Sdk.Common.Adapters
Outcome of the work a lease was granted for.
public struct LeaseWorkOutcome
Inheritance Object β ValueType β LeaseWorkOutcome
Implements IEquatable<LeaseWorkOutcome>
Remarks:
π΄ The output travels on the release because there is no other route.
A dedicated adapter reports it on IAdapterHub.ReportExecutionEndAsync, whose tenant and
adapter come from the connection; a pool member holds a tenant-free management channel
and has no such connection. Without this the borrower's leased execution would complete with an
empty OutputData where its own adapter would have filled it.
Propertiesβ
Successβ
Whether the work item succeeded.
public bool Success { get; set; }
Property Valueβ
StatusMessageβ
Human-readable outcome, carried back to the controller on the release. π΄ Must never contain credential material β it is logged and stored on the borrower's execution.
public string StatusMessage { get; set; }
Property Valueβ
OutputDataβ
What the pipeline declared as its result (SetPipelineExecutionResult@1), or null.
Carried back on the release and written onto the borrower's execution.
public string OutputData { get; set; }
Property Valueβ
FailureKindβ
What a failed work item says about its writes, derived with
; null on success. Carried back on the release
() so a pipeline method answers METHOD_OUTCOME_UNKNOWN when a
write was not acknowledged.
public Nullable<PipelineExecutionFailureKind> FailureKind { get; set; }
Property Valueβ
Nullable<PipelineExecutionFailureKind>
Remarks:
Not a positional member on purpose: the generated constructor and Deconstruct keep their shape for
existing consumers.
Constructorsβ
LeaseWorkOutcome(Boolean, String, String)β
Outcome of the work a lease was granted for.
public LeaseWorkOutcome(bool Success, string StatusMessage, string OutputData)
Parametersβ
Success Boolean
Whether the work item succeeded.
StatusMessage String
Human-readable outcome, carried back to the controller on the release. π΄ Must never contain
credential material β it is logged and stored on the borrower's execution.
OutputData String
What the pipeline declared as its result (SetPipelineExecutionResult@1), or null.
Carried back on the release and written onto the borrower's execution.
Remarks:
π΄ The output travels on the release because there is no other route.
A dedicated adapter reports it on IAdapterHub.ReportExecutionEndAsync, whose tenant and
adapter come from the connection; a pool member holds a tenant-free management channel
and has no such connection. Without this the borrower's leased execution would complete with an
empty OutputData where its own adapter would have filled it.
Methodsβ
Succeeded(String, String)β
The work item ran and succeeded.
public static LeaseWorkOutcome Succeeded(string statusMessage, string outputData)
Parametersβ
statusMessage String
outputData String
Returnsβ
Failed(String)β
The work item ran and failed.
public static LeaseWorkOutcome Failed(string statusMessage)
Parametersβ
statusMessage String
Returnsβ
Failed(String, Nullable<PipelineExecutionFailureKind>)β
The work item ran and failed; failureKind says what that means for its writes.
public static LeaseWorkOutcome Failed(string statusMessage, Nullable<PipelineExecutionFailureKind> failureKind)
Parametersβ
statusMessage String
Human-readable outcome; never credential material.
failureKind Nullable<PipelineExecutionFailureKind>
What the failure says about the writes; null = Failed.