Table of Contents

Class ForEachResults

Namespace
WorkflowForge.Operations
Assembly
WorkflowForge.dll

Container for foreach operation results. Holds the results from each operation executed in a foreach workflow operation.

public sealed class ForEachResults
Inheritance
ForEachResults
Inherited Members

Properties

Count

Gets the number of results.

public int Count { get; }

Property Value

int

Results

Gets or sets the results from each operation in the foreach. The array index corresponds to the operation index in the foreach operation.

public object?[] Results { get; set; }

Property Value

object[]

Timestamp

Gets or sets the timestamp when the results were created.

public DateTimeOffset Timestamp { get; set; }

Property Value

DateTimeOffset

TotalResults

Gets or sets the total number of results.

public int TotalResults { get; set; }

Property Value

int

Methods

GetResult(int)

Gets a result by index.

public object? GetResult(int index)

Parameters

index int

The index of the result.

Returns

object

The result at the specified index, or null if index is out of range.

GetResult<T>(int)

Gets a strongly-typed result by index.

public T? GetResult<T>(int index)

Parameters

index int

The index of the result.

Returns

T

The result cast to T, or default(T) if not found or cannot be cast.

Type Parameters

T

The expected type of the result.