Lite.Procedures.DependencyInjection 1.0.0-rc2

This is a prerelease version of Lite.Procedures.DependencyInjection.
dotnet add package Lite.Procedures.DependencyInjection --version 1.0.0-rc2
                    
NuGet\Install-Package Lite.Procedures.DependencyInjection -Version 1.0.0-rc2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lite.Procedures.DependencyInjection" Version="1.0.0-rc2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lite.Procedures.DependencyInjection" Version="1.0.0-rc2" />
                    
Directory.Packages.props
<PackageReference Include="Lite.Procedures.DependencyInjection" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lite.Procedures.DependencyInjection --version 1.0.0-rc2
                    
#r "nuget: Lite.Procedures.DependencyInjection, 1.0.0-rc2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lite.Procedures.DependencyInjection@1.0.0-rc2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lite.Procedures.DependencyInjection&version=1.0.0-rc2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Lite.Procedures.DependencyInjection&version=1.0.0-rc2&prerelease
                    
Install as a Cake Tool

Lite.Procedures

Легковесный пайплайн процедур с интерцепторами для .NET: регистрация в DI, синхронный/асинхронный вызов, опциональная кодогенерация пайплайнов.

Установка окружения

  • .NET SDK 10 — скачать.
  • Опционально: mise (или rtx) для версий: mise install (см. .mise.toml).
  • Локальная установка одной командой:
    • Windows: .\install.ps1
    • Linux/macOS: ./install.sh
  • Dotnet-инструменты (CSharpier и др.): dotnet tool restore (конфиг в .config/dotnet-tools.json).
  • Pre-commit: pip install pre-commit (или mise install), затем pre-commit install.

Сборка и тесты

dotnet restore Lite.Procedures.sln
dotnet build Lite.Procedures.sln -c Release
dotnet test Lite.Procedures.sln -c Release --no-build

Линт и формат

  • Проверка формата и сборки/тестов:
    python .config/run_lint.py
    Варианты: run_lint.py format, run_lint.py build, run_lint.py test.
  • Форматирование C#:
    dotnet format Lite.Procedures.sln (применить изменения) или через CSharpier: dotnet csharpier .
  • Pre-commit: при pre-commit install перед коммитом запускаются проверки из .pre-commit-config.yaml (format verify, build, test).

IDE (VS Code / Cursor)

  • Рекомендуемые расширения: см. .vscode/extensions.json (C#, CSharpier).
  • Format on save и форматтер для C#: см. .vscode/settings.json.

Релиз и NuGet

Релизы делаются с ветки release через теги. Публикация в NuGet — только при пуше тега вида v* с этой ветки. Подробно: docs/PUBLISHING.md.

Бенчмарки

См. BENCHMARKS.md.

Плейграунд (реальное приложение)

Минимальное ASP.NET Core приложение с Lite.Procedures — процедуры, контроллеры, DI (по аналогии с Lite.Validation playground):

dotnet run --project playground/Lite.Procedures.Playground/Lite.Procedures.Playground.csproj
  • GET /echo?q=... — вызов процедуры Echo (возвращает строку).
  • POST /order — тело { "productName": "...", "quantity": 1, "price": 10.5 }, возвращает созданный заказ.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-rc2 79 6/17/2026
1.0.0-rc1 82 6/17/2026