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
HasValue
Gets whether processing produced a result value.
public bool HasValue { get; }
Property Value
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
Reject()
Rejects the current item.
public static CommitDecision<T> Reject()
Returns
Success(T)
Accepts the current item with a result value.
public static CommitDecision<T> Success(T value)
Parameters
valueT