/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v1.9.4
src/ScriptEngine/Machine/MachineStoppedEventArgs.cs
40 строк
1010 B
EvilBeaver
Отладка веб-движка
30 апр 2020, 17:32
30 апр 2020, 17:32
0292596
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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 System.Threading; namespace ScriptEngine.Machine { public class MachineStoppedEventArgs : EventArgs { public MachineStoppedEventArgs(MachineStopReason reason) { Reason = reason; ThreadId = Thread.CurrentThread.ManagedThreadId; } public MachineStoppedEventArgs(MachineStopReason reason, int threadId) { Reason = reason; ThreadId = threadId; } public MachineStopReason Reason { get; } public int ThreadId { get; } } public enum MachineStopReason { Breakpoint, Step, Exception } }