Struct DeltaToken<T>
- Delta token carrying stream context + value + error + scope.
- Scope is a shared reference per stream (must be carried via Next).
Assembly: Glitch9.IO.dll
Syntax
public readonly struct DeltaToken<T>
Type Parameters
Properties
|
Edit this page
View Source
Context
Declaration
public EventContext Context { get; }
Property Value
|
Edit this page
View Source
Error
Declaration
public Exception Error { get; }
Property Value
|
Edit this page
View Source
HasData
Declaration
public bool HasData { get; }
Property Value
|
Edit this page
View Source
Scope
Declaration
public StreamScope Scope { get; }
Property Value
|
Edit this page
View Source
Value
Declaration
Property Value
Methods
|
Edit this page
View Source
Aggregate<TPrev>(DeltaToken<TPrev>)
Declaration
public static DeltaToken<T> Aggregate<TPrev>(DeltaToken<TPrev> carry)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Done<TPrev>(T, DeltaToken<TPrev>)
Declaration
public static DeltaToken<T> Done<TPrev>(T data, DeltaToken<TPrev> carry)
Parameters
| Type |
Name |
Description |
| T |
data |
|
| DeltaToken<TPrev> |
carry |
|
Returns
Type Parameters
|
Edit this page
View Source
Fail<TPrev>(Exception, DeltaToken<TPrev>)
Declaration
public static DeltaToken<T> Fail<TPrev>(Exception error, DeltaToken<TPrev> carry)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Fail<TPrev>(string, DeltaToken<TPrev>)
Declaration
public static DeltaToken<T> Fail<TPrev>(string errorMessage, DeltaToken<TPrev> carry)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
FinalizeStream()
Declaration
public DeltaToken<T> FinalizeStream()
Returns
|
Edit this page
View Source
GetOrCreateState<TState>()
Declaration
public TState GetOrCreateState<TState>() where TState : class, new()
Returns
Type Parameters
|
Edit this page
View Source
Next<TPrev>(EventContext, T, DeltaToken<TPrev>, Exception)
Declaration
public static DeltaToken<T> Next<TPrev>(EventContext ctx, T data, DeltaToken<TPrev> carry, Exception error = null)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Next<TPrev>(T, DeltaToken<TPrev>, Exception)
Declaration
public static DeltaToken<T> Next<TPrev>(T data, DeltaToken<TPrev> carry, Exception error = null)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Skip<TPrev>(DeltaToken<TPrev>)
Declaration
public static DeltaToken<T> Skip<TPrev>(DeltaToken<TPrev> carry)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Start(EventContext?, T, StreamScope)
Declaration
public static DeltaToken<T> Start(EventContext? ctx, T data, StreamScope scope)
Parameters
Returns
Extension Methods