Class ProgramResult
Defines the general-purpose Result concept of Program completion, avoiding third-party dependencies that are not compatible with F#.
public record ProgramResult : IEquatable<ProgramResult>
- Inheritance
-
ProgramResult
- Implements
- Derived
- 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
ProgramResult(bool, string?)
Defines the general-purpose Result concept of Program completion, avoiding third-party dependencies that are not compatible with F#.
public ProgramResult(bool IsSuccessful, string? Message)
Parameters
IsSuccessfulboolwhen
truethe Program completed without exceptions.Messagestringa domain-specific message summarizing the Program completion
Remarks
This type (and its possible subtypes) is intended to define the output of Activities (like IActivityTask<TInput, TOutput> or IActivityTaskGroup<TOutput>).
Properties
IsSuccessful
when true the Program completed without exceptions.
public bool IsSuccessful { get; init; }
Property Value
Message
a domain-specific message summarizing the Program completion
public string? Message { get; init; }