CyberEye.Constant.Lib
3.0.34
dotnet add package CyberEye.Constant.Lib --version 3.0.34
NuGet\Install-Package CyberEye.Constant.Lib -Version 3.0.34
<PackageReference Include="CyberEye.Constant.Lib" Version="3.0.34" />
<PackageVersion Include="CyberEye.Constant.Lib" Version="3.0.34" />
<PackageReference Include="CyberEye.Constant.Lib" />
paket add CyberEye.Constant.Lib --version 3.0.34
#r "nuget: CyberEye.Constant.Lib, 3.0.34"
#:package CyberEye.Constant.Lib@3.0.34
#addin nuget:?package=CyberEye.Constant.Lib&version=3.0.34
#tool nuget:?package=CyberEye.Constant.Lib&version=3.0.34
CyberEye.Constant.Lib
Hằng số, DTO kết quả, exception nghiệp vụ và helper dùng chung. Package này không đăng ký một pipeline ứng dụng hoàn chỉnh.
Target framework: net8.0.
Cài đặt
dotnet add package CyberEye.Constant.Lib
Cần cấu hình NuGet feed của dự án và chọn phiên bản tương thích với các package CyberEye khác trong host.
Ví dụ kết quả nghiệp vụ
using Ce.Constant.Lib.Dtos;
using Ce.Constant.Lib.Exceptions;
var result = GenericResponse<string>.ResultWithData("ready");
// Ở nhánh không tìm thấy tài nguyên:
// throw new NotFoundException("Không tìm thấy tài liệu.");
Success là thuộc tính của GenericResponse, không phải factory method. ExceptionMiddleware của host quyết định cách chuyển ngoại lệ thành HTTP response.
Ce.Constant.Lib.Helper.StaticResourceManager trích xuất EmbeddedResource khi thư viện bên ngoài cần đường dẫn file. Project sở hữu resource phải khai báo EmbeddedResource trong .csproj; không cần sao chép helper.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net8.0
- AutoMapper (>= 15.1.3)
- MessagePack (>= 3.1.8)
- MessagePack.Annotations (>= 3.1.8)
- Newtonsoft.Json (>= 13.0.4)
- Newtonsoft.Json.Schema (>= 4.0.1)
- PluralizeService.Core (>= 1.2.21147.2)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on CyberEye.Constant.Lib:
| Package | Downloads |
|---|---|
|
CyberEye.Common.Lib
Package chứa các hàm tiện ích, các base class, abstract class |
|
|
CyberEye.Axe.Utility
Package chứa các hàm tiện ích cho dự án AXE |
|
|
CyberEye.SharedSql.Lib
Package các common cho Sql (bao gồm cả NoSql & RDBMS) |
|
|
CyberEye.Client.Infrastructure
Package Description |
|
|
CyberEye.Infrastructure.Dtos
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.34 | 0 | 11/15/2026 |
| 3.0.33 | 0 | 11/15/2026 |
| 3.0.32 | 0 | 11/15/2026 |
| 3.0.31 | 69 | 11/15/2026 |
| 3.0.30 | 78 | 11/15/2026 |
| 3.0.29 | 110 | 11/13/2026 |
| 3.0.28 | 639 | 11/6/2026 |
| 3.0.27 | 642 | 9/17/2026 |
| 3.0.26 | 606 | 9/8/2026 |
| 3.0.25 | 726 | 8/22/2026 |
| 3.0.24 | 664 | 8/10/2026 |
| 3.0.23 | 634 | 8/9/2026 |
| 3.0.22 | 835 | 8/1/2026 |
| 3.0.21 | 826 | 7/28/2026 |
| 3.0.20 | 814 | 7/27/2026 |
| 3.0.19 | 807 | 7/27/2026 |
| 3.0.18 | 720 | 7/17/2026 |
| 3.0.17 | 733 | 7/13/2026 |
| 3.0.16 | 728 | 7/12/2026 |
| 3.0.15 | 730 | 7/10/2026 |