/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.2
src/OneScript.Native/Extensions/ServiceRegistrationExtensions.cs
25 строк
919 B
EvilBeaver
Выделена отдельная папка для инфраструктуры исключений
24 июл 2023, 22:46
24 июл 2023, 22:46
d1c2e94
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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.DependencyInjection; using OneScript.Execution; using OneScript.Language.SyntaxAnalysis; using OneScript.Native.Compiler; using OneScript.Native.Runtime; namespace OneScript.Native.Extensions { public static class ServiceRegistrationExtensions { public static IServiceDefinitions UseNativeRuntime(this IServiceDefinitions services) { services.RegisterEnumerable<IDirectiveHandler, NativeRuntimeAnnotationHandler>(); services.RegisterEnumerable<IExecutorProvider, NativeExecutorProvider>(); return services; } } }