private ScriptServices CreateScriptServices()
        {
            var console = new PersonalTrainerConsole();
            ILogProvider logger = new DefaultLogProvider();

            var builder = new ScriptServicesBuilder(console, logger);

            builder.ScriptEngine<RoslynScriptEngine>();

            builder.FileSystem<ScriptFileSystem>();
            return builder.Build();
        }
Esempio n. 2
0
        private ScriptServices CreateScriptServices()
        {
            var          console = new PersonalTrainerConsole();
            ILogProvider logger  = new DefaultLogProvider();

            var builder = new ScriptServicesBuilder(console, logger);

            builder.ScriptEngine <RoslynScriptEngine>();

            builder.FileSystem <ScriptFileSystem>();
            return(builder.Build());
        }