Struct Decoded<T>
- Namespace
- Virtufin.Worker.DevKit
- Assembly
- Virtufin.Worker.DevKit.dll
The result of decoding an input CloudEvent: a value for the process, or Skip when the event is not one the process consumes. A skipped event changes no state and produces no output.
public readonly struct Decoded<T>
Type Parameters
T
- Inherited Members
Properties
HasValue
Whether the event was decoded (false: skip it).
public bool HasValue { get; }
Property Value
Skip
The event is not for this process.
public static Decoded<T> Skip { get; }
Property Value
- Decoded<T>
Value
The decoded input; only meaningful when HasValue.
public T Value { get; }
Property Value
- T
Methods
Of(T)
A decoded input.
public static Decoded<T> Of(T value)
Parameters
valueT
Returns
- Decoded<T>
Operators
implicit operator Decoded<T>(T)
A decoded input.
public static implicit operator Decoded<T>(T value)
Parameters
valueT
Returns
- Decoded<T>