/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.0-rc2
src/OneScript.Native/Extensions/ServiceRegistrationExtensions.cs
25 строк
919 B
EvilBeaver
Компиляция полноценного нативного модуля (продолжение)
16 сен 2022, 16:28
16 сен 2022, 16:28
eef819f
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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; } } }