/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.2
src/ScriptEngine.HostedScript/Process.cs
62 строки
2 KB
EvilBeaver
Удалены использования IDebugController из основного кода
07 ноя 2025, 14:58
07 ноя 2025, 14:58
e3d265d
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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 System; using OneScript.Execution; using ScriptEngine.Machine; namespace ScriptEngine.HostedScript { public class Process { ScriptingEngine _engine; readonly IHostApplication _host; readonly IExecutableModule _module; private IBslProcess _bslProcess; internal Process( IBslProcess process, IHostApplication host, IExecutableModule src, ScriptingEngine runtime) { _host = host; _engine = runtime; _module = src; _bslProcess = process; } public int Start() { int exitCode = 0; try { _engine.NewObject(_module, _bslProcess); exitCode = 0; } catch (ScriptInterruptionException e) { exitCode = e.ExitCode; } catch (Exception e) { _host.ShowExceptionInfo(e); exitCode = 1; } finally { _engine.Debugger.NotifyProcessExit(exitCode); _engine.Dispose(); _engine = null; } return exitCode; } } }