public ChainHandler <TIdentifier, TContext> AddStep(ChainHandlerStep <TIdentifier, TContext> step) { _firstStep = _firstStep ?? step; _lastStep?.SetSuccessor(step); _lastStep = step; return(this); }
public void SetSuccessor(ChainHandlerStep <TIdentifier, TContext> successor) { this.successor = successor; }