/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.2
src/ScriptEngine/Machine/ExecutionContext.cs
36 строк
1 KB
Andrei Ovsiankin
Заменил класс RuntimeEnvironment на интерфейс еще в нескольких местах
02 июн 2024, 22:11
02 июн 2024, 22:11
06656e7
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using OneScript.Contexts; using OneScript.DependencyInjection; using OneScript.Types; namespace ScriptEngine.Machine { public class ExecutionContext { public ExecutionContext( ITypeManager typeManager, IRuntimeEnvironment globalNamespace, IGlobalsManager globalInstances, IServiceContainer services) { TypeManager = typeManager; GlobalNamespace = globalNamespace; GlobalInstances = globalInstances; Services = services; } public ITypeManager TypeManager { get; } public IRuntimeEnvironment GlobalNamespace { get; } public IGlobalsManager GlobalInstances { get; } public IServiceContainer Services { get; set; } } }