CyberEye.Ocr.Client 3.0.34

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

CyberEye.Ocr.Client

Gọi các API OCR nội bộ và bên ngoài. Đây là SDK gọi service; package không chạy nghiệp vụ server hoặc bảo đảm mọi tính năng của service đều có API client tương ứng.

Target framework: net8.0.

Cài đặt

dotnet add package CyberEye.Ocr.Client

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.

Các client hiện có

IInternalOcrApiClientService, IExternalOcrApiClientService.

HTTP interfaces nằm trong Ce.Ocr.Client.Services.Apis.Interfaces; implementations nằm trong Services.Apis.Implementations. Các lớp client tổng hợp/gRPC nằm trong Services theo từng module.

Đăng ký một HTTP client

using Ce.Ocr.Client.Services.Apis.Interfaces;
using Ce.Ocr.Client.Services.Apis.Implementations;
using Microsoft.Extensions.DependencyInjection;

// Fragment: host đã cấu hình IBaseHttpClientFactory, IConfiguration và ApiDomain.
builder.Services.AddSingleton<IInternalOcrApiClientService, InternalOcrApiClientService>();

Client dùng IBaseHttpClientFactory của Ce.Interaction.Lib, không nhận HttpClient trực tiếp. Vì vậy không thay bằng AddHttpClient<TInterface,TImplementation> chỉ để gán BaseAddress.

Host Ce.Common.Lib nạp endpoint từ section ApiDomain:

{
  "ApiDomain": {
    "OcrEndpoint": "https://service.example/api/v1"
  }
}

URL chỉ minh họa: thay bằng base route thật của service, không thêm route resource mà client đã nối. Không dùng ServiceUrls:Ocr vì client không đọc khóa đó.

Nếu dùng Ce.Client.All, chọn registration tương ứng và tránh đăng ký trùng. Token/context phải tuân theo luồng outbound của host; caller kiểm tra response lỗi và truyền CancellationToken.

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 (1)

Showing the top 1 NuGet packages that depend on CyberEye.Ocr.Client:

Package Downloads
CyberEye.Client.All

Package wrapper cung cấp các interface để giao tiếp với các Service Core

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 41 11/15/2026
3.0.30 46 11/15/2026
3.0.29 53 11/13/2026
3.0.28 115 11/6/2026
3.0.27 226 9/17/2026
3.0.26 148 9/8/2026
3.0.25 161 8/22/2026
3.0.24 236 8/10/2026
3.0.23 150 8/9/2026
3.0.22 176 8/1/2026
3.0.21 165 7/28/2026
3.0.20 168 7/27/2026
3.0.19 169 7/27/2026
3.0.18 163 7/17/2026
3.0.17 167 7/13/2026
3.0.16 155 7/12/2026
3.0.15 157 7/10/2026
Loading failed