public TexoEngine Build(ITexoFactory <object, string> factory, IViewService view) { commandFactory = factory ?? throw new ArgumentNullException(nameof(factory)); Initiliase(); SetViewService(view); runtime = new RuntimeCoordinatorService( environment, evaluator, commandManagement, resultProcessing, usedView, actionManagement, history, intellisense, didYouMean, fallback, logger); InitialiseActions(); return(new TexoEngine(runtime, usedView, actions, setting, logger)); }
public SingletonCommandManagementService(ITexoFactory <object, string> factory) { this.factory = factory; commands = new Dictionary <string, object>(); }