Exemple #1
0
 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));
 }
Exemple #2
0
 public SingletonCommandManagementService(ITexoFactory <object, string> factory)
 {
     this.factory = factory;
     commands     = new Dictionary <string, object>();
 }