Пример #1
0
 public OperationStackExecutionState(OperationStackOptions options, StackBlocks <TInput, TState, TOperationEvent> blocks, TInput stackInput, TState initialState)
 {
     this.options      = options;
     this.blocks       = blocks;
     StackInput        = stackInput;
     CurrentBlockSpec  = blocks.GetFirst();
     this.InitialState = initialState;
     State             = initialState;
 }
 public OperationStackBuilder <TInput, TState, TOperationEvent> WithOptions(OperationStackOptions options)
 {
     return(new OperationStackBuilder <TInput, TState, TOperationEvent>(options, initialStateBuilder, hasInput));
 }
 internal OperationStackBuilder(OperationStackOptions options, Func <TState> initialStateBuilder, bool hasInput)
 {
     this.options             = options;
     this.initialStateBuilder = initialStateBuilder;
     this.hasInput            = hasInput;
 }
Пример #4
0
 internal OperationStackInternal(OperationStackOptions options, Func <TState> initialStateBuilder, bool hasInput, StackBlocks <TInput, TState, TOperationEvent> blocks)
     : this(options, initialStateBuilder, hasInput)
 {
     Blocks = blocks;
 }
Пример #5
0
 internal OperationStackInternal(OperationStackOptions options, Func <TState> initialStateBuilder, bool hasInput)
 {
     Options             = options;
     InitialStateBuilder = initialStateBuilder;
     HasInput            = hasInput;
 }