Vhat.Infrastructure 13.0.0

dotnet add package Vhat.Infrastructure --version 13.0.0
                    
NuGet\Install-Package Vhat.Infrastructure -Version 13.0.0
                    
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="Vhat.Infrastructure" Version="13.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vhat.Infrastructure" Version="13.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Vhat.Infrastructure" />
                    
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 Vhat.Infrastructure --version 13.0.0
                    
#r "nuget: Vhat.Infrastructure, 13.0.0"
                    
#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 Vhat.Infrastructure@13.0.0
                    
#: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=Vhat.Infrastructure&version=13.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Vhat.Infrastructure&version=13.0.0
                    
Install as a Cake Tool

core-lib

Repo làm gì

Thư viện .NET dùng chung cho các service backend trong workspace Loipv.

Entry points chính

  • CoreLib.slnx: solution chính.
  • src/: source các package/thư viện dùng chung.
  • tests/: test cho shared library nếu có.

Lệnh dev/build/test/lint

  • Dev: không có service chạy độc lập.
  • Build: dotnet build CoreLib.slnx
  • Test: dotnet test CoreLib.slnx
  • Lint/typecheck: không có lệnh riêng; dùng compiler/analyzer của .NET.
  • Validate: dotnet build CoreLib.slnx

Port/local URL

Không có port hoặc local URL vì repo này không chạy service.

Dependency quan trọng

  • .NET SDK theo cấu hình repo/workspace.
  • Các backend phụ thuộc vào contract/package dùng chung từ repo này.

Verify theo scope

  • Sửa shared API/model/helper: chạy dotnet build CoreLib.slnx, sau đó build repo tiêu thụ liên quan.
  • Sửa test/shared behavior: chạy dotnet test CoreLib.slnx nếu test có sẵn.

Deploy note

Không có nhánh production. Thay đổi được tiêu thụ bởi các repo backend phụ thuộc.

Contract của phiên bản 13

Bản đồ repo, tác động từng luồng queue và bằng chứng kiểm thử: Báo cáo Vhat 13.

  • AddScopedTimeService tạo ICoreTimeService theo scope. Repo ứng dụng sở hữu quyết định chọn scoped hay singleton.
  • GetClientIpGetClientScheme đọc connection/request đã được middleware chuẩn hóa. Ứng dụng đăng ký AddTrustedForwardedHeaders bằng section ForwardedHeaders gồm KnownProxies, KnownNetworks, ForwardLimit; không có danh sách thì không nhận forwarded headers.
  • Consumer phải truyền chính sách mayRetry theo nghiệp vụ và callback phục hồi khi ACK/transport lỗi. Core không tự phân loại nghiệp vụ dựa trên tên task.
  • Chỉ ACK khi handler hoàn tất hoặc message được broker xác nhận đã chuyển sang retry/queue .failed. Nghiệp vụ được xác nhận idempotent có tối đa 3 lần chạy; nghiệp vụ còn lại không tự chạy lại khi lỗi hoặc redelivery chưa rõ kết quả.
  • Publisher phải dùng channel có publisher confirms và serializer chung. Envelope phải có MessageId, Type, schema hợp lệ và payload JSON; ContentEncoding chỉ để trống hoặc là gzip. Không đoán gzip khi thiếu header, không tự sinh ID thay cho message lỗi.
  • Publisher tác vụ dùng mandatory=true; broadcast cho subscriber tạm thời có thể dùng mandatory=false. Confirm của broker không đồng nghĩa handler hoặc hệ thống bên ngoài đã xử lý thành công.
  • .failed giữ nguyên body và metadata cần đối soát. Không có replay tự động cho SMTP, Telegram, tăng bộ đếm, vị thế giao dịch hoặc tác vụ nhiều bước chưa chứng minh idempotent. Quyết định đối soát, sửa dữ liệu và phát lại thuộc repo nghiệp vụ/ops.

Triển khai phải cập nhật cả producer và consumer. Với backlog từ publisher cũ thiếu metadata, cần drain hoặc chuyển đổi có kiểm chứng trước khi bật consumer strict; không thêm fallback tương thích vào runtime.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
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
13.0.0 236 9/6/2026
11.0.5 473 8/30/2026
11.0.3 110 8/25/2026
11.0.2 281 8/24/2026
11.0.1 173 8/23/2026
11.0.0 121 8/22/2026
10.27.485 182 8/16/2026
10.27.484 101 8/16/2026
10.27.483 173 8/12/2026
10.27.482 99 8/11/2026
10.27.481 98 8/11/2026
10.27.480 102 8/11/2026
10.27.479 128 8/10/2026
10.27.478 202 8/9/2026
10.27.477 308 7/27/2026
10.27.476 320 7/19/2026
10.27.475 112 7/13/2026
10.27.474 274 7/9/2026
10.27.473 357 6/28/2026
10.27.472 123 6/24/2026
Loading failed