Class ProgramOutputResult<TOutput>
Defines the general-purpose Result concept for Program output with output, avoiding third-party dependencies that are not compatible with F#.
public record ProgramOutputResult<TOutput> : ProgramResult, IEquatable<ProgramResult>, IEquatable<ProgramOutputResult<TOutput>>
Type Parameters
TOutputnullable value or reference types
- Inheritance
-
ProgramOutputResult<TOutput>
- Implements
-
IEquatable<ProgramOutputResult<TOutput>>
- Inherited Members
- Extension Methods
Remarks
This type (and its possible subtypes) is intended to define the output of Activities (like IActivityTask<TInput, TOutput> or IActivityTaskGroup<TOutput>).
Constructors
ProgramOutputResult(bool, string?, TOutput?)
Defines the general-purpose Result concept for Program output with output, avoiding third-party dependencies that are not compatible with F#.
public ProgramOutputResult(bool IsSuccessful, string? Message, TOutput? Output)
Parameters
IsSuccessfulboolwhen
truethe Program completed without exceptions.Messagestringa domain-specific message summarizing the Program completion
OutputTOutputthe output of the Program
Remarks
This type (and its possible subtypes) is intended to define the output of Activities (like IActivityTask<TInput, TOutput> or IActivityTaskGroup<TOutput>).
Properties
Output
the output of the Program
public TOutput? Output { get; init; }
Property Value
- TOutput