Table of Contents

Class ProgramOutputResult<TOutput>

Namespace
Songhay.Models
Assembly
SonghayCore.dll

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

TOutput

nullable value or reference types

Inheritance
ProgramOutputResult<TOutput>
Implements
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

IsSuccessful bool

when true the Program completed without exceptions.

Message string

a domain-specific message summarizing the Program completion

Output TOutput

the 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