Class ProgressDefinition
- Namespace
- MackySoft.Navigathena
- Assembly
- MackySoft.Navigathena.dll
Defines either a single producer's state or an application-specific composition of typed inputs.
public static class ProgressDefinition
- Inheritance
-
ProgressDefinition
- Inherited Members
Methods
Create<TState>(Func<TState>)
Starts a composition whose initial state is created separately for each transition execution.
public static ProgressDefinitionBuilder<TState> Create<TState>(Func<TState> initialState)
Parameters
initialStateFunc<TState>
Returns
- ProgressDefinitionBuilder<TState>
Type Parameters
TState
From<TState>(ProgressInput<TState>, Func<TState>)
Displays one input directly, without an aggregate model or reducer.
public static ProgressDefinition<TState> From<TState>(ProgressInput<TState> input, Func<TState> initialState)
Parameters
inputProgressInput<TState>initialStateFunc<TState>
Returns
- ProgressDefinition<TState>
Type Parameters
TState
Remarks
Sequential invocations may replace the state. Concurrent reporting invocations require an explicit Reduce definition instead of silently overwriting each other.