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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed