Lite.Procedures.Rpc.SourceGenerators 1.0.0-rc2

This is a prerelease version of Lite.Procedures.Rpc.SourceGenerators.
dotnet add package Lite.Procedures.Rpc.SourceGenerators --version 1.0.0-rc2
                    
NuGet\Install-Package Lite.Procedures.Rpc.SourceGenerators -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.Rpc.SourceGenerators" Version="1.0.0-rc2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lite.Procedures.Rpc.SourceGenerators" Version="1.0.0-rc2" />
                    
Directory.Packages.props
<PackageReference Include="Lite.Procedures.Rpc.SourceGenerators">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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.Rpc.SourceGenerators --version 1.0.0-rc2
                    
#r "nuget: Lite.Procedures.Rpc.SourceGenerators, 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.Rpc.SourceGenerators@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.Rpc.SourceGenerators&version=1.0.0-rc2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Lite.Procedures.Rpc.SourceGenerators&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 }, возвращает созданный заказ.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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 86 6/17/2026