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 (AB#4924 Β§9.9 / D4).
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β
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 (AB#4924 Β§9.9 / D4).
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