public void Record(ICodeProvider codeProvider, params object[] args) { var step = Sequence.AddStep(codeProvider.Origin); step.AddStatement(codeProvider.Code(args)); OnRecordAdded?.Invoke(); }