NTools.ACL
0.2.3
Suggested Alternatives
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package NTools.ACL --version 0.2.3
NuGet\Install-Package NTools.ACL -Version 0.2.3
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="NTools.ACL" Version="0.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NTools.ACL" Version="0.2.3" />
<PackageReference Include="NTools.ACL" />
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 NTools.ACL --version 0.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NTools.ACL, 0.2.3"
#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 NTools.ACL@0.2.3
#: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=NTools.ACL&version=0.2.3
#tool nuget:?package=NTools.ACL&version=0.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NTools.ACL
Overview
NTools.ACL (Anti-Corruption Layer) is a client library that provides strongly-typed HTTP clients for consuming NTools API services. It simplifies integration with NTools APIs by offering clean interfaces, dependency injection support, and built-in logging.
Features
Available Clients
- ChatGPTClient - ChatGPT/OpenAI integration
- MailClient - Email validation and sending (MailerSend)
- FileClient - File upload and URL retrieval (S3-compatible storage)
- DocumentClient - CPF/CNPJ validation
- StringClient - String manipulation utilities
Key Benefits
- ✅ Strongly Typed - Type-safe API calls with IntelliSense support
- ✅ Dependency Injection - Full DI support with IHttpClientFactory
- ✅ Logging - Integrated logging with ILogger
- ✅ Configuration - Uses IOptions pattern for settings
- ✅ Error Handling - Automatic HTTP error handling
- ✅ JSON Serialization - Built-in JSON handling
Installation
dotnet add package NTools.ACL
dotnet add package NTools.DTO
Configuration
appsettings.json
{
"NTool": {
"ApiUrl": "https://your-ntools-api.com"
}
}
Startup.cs / Program.cs
services.Configure<NToolSetting>(Configuration.GetSection("NTool"));
services.AddHttpClient<IChatGPTClient, ChatGPTClient>();
services.AddHttpClient<IMailClient, MailClient>();
services.AddHttpClient<IFileClient, FileClient>();
Usage Example - ChatGPT
public class MyService
{
private readonly IChatGPTClient _chatGPTClient;
public MyService(IChatGPTClient chatGPTClient)
{
_chatGPTClient = chatGPTClient;
}
public async Task<string> AskQuestion(string question)
{
return await _chatGPTClient.SendMessageAsync(question);
}
}
Repository
GitHub: https://github.com/landim32/NTools.ACL
License
MIT License - Copyright (c) Rodrigo Landim / Emagine
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.AspNetCore.Authentication (>= 2.3.0)
- NTools.DTO (>= 0.2.2)
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 |
|---|