Table of Contents

Struct CommitDecision<T>

Namespace
Rinku.Tracking.Committers
Assembly
Rinku.dll

A processing outcome, optionally carrying a value for postprocessing and pending parameters.

public readonly struct CommitDecision<T>

Type Parameters

T
Inherited Members
Extension Methods

Properties

Accepted

Gets whether processing accepted the item.

public bool Accepted { get; }

Property Value

bool

HasValue

Gets whether processing produced a result value.

public bool HasValue { get; }

Property Value

bool

Value

Gets the result value when HasValue is true.

public T Value { get; }

Property Value

T

Methods

Continue()

Accepts the current item without a result value.

public static CommitDecision<T> Continue()

Returns

CommitDecision<T>

Reject()

Rejects the current item.

public static CommitDecision<T> Reject()

Returns

CommitDecision<T>

Success(T)

Accepts the current item with a result value.

public static CommitDecision<T> Success(T value)

Parameters

value T

Returns

CommitDecision<T>