CHO.Configuratore.SDK
10.2.11
dotnet add package CHO.Configuratore.SDK --version 10.2.11
NuGet\Install-Package CHO.Configuratore.SDK -Version 10.2.11
<PackageReference Include="CHO.Configuratore.SDK" Version="10.2.11" />
<PackageVersion Include="CHO.Configuratore.SDK" Version="10.2.11" />
<PackageReference Include="CHO.Configuratore.SDK" />
paket add CHO.Configuratore.SDK --version 10.2.11
#r "nuget: CHO.Configuratore.SDK, 10.2.11"
#:package CHO.Configuratore.SDK@10.2.11
#addin nuget:?package=CHO.Configuratore.SDK&version=10.2.11
#tool nuget:?package=CHO.Configuratore.SDK&version=10.2.11
Mamba Config SDK
Nuget SDK per contattare gli endpoint di un'istanza di Configuratore CHO. Il client e' generato automaticamente con NSwag a partire dalla dichiarazione json OpenAPI dell'API.
Changelog 10.2.11
Questo changelog è limitato alla versione corrente. Guardare
changelog.mdnella cartella del progetto per l'intero storico.
Collega l'utetne a più ditte al momento della sua creazione. E' stato aggiunto il campo Companies (opzionale) a CreateUserInput e reso nullable CompanyId. Solo uno dei due può essere specificato in una richiesta.
Convenzioni di utilizzo
Passando i parametri alle funzioni facendo affidamento alla loro posizione crea codice difficile da leggere. Usa una forma piu' dichiarativa:
// chiamata della funzione in modo dichiarativo (nomeParametro: valore)
await mamba.ListUsers(
companyId: "00000000-0000-0000-0000-000000000001",
page: 1,
pageSize: 10,
ct: ct
)
Utilizzo
Registra l'SDK nel Program.cs:
// ...
builder.Services.AddMambaClient(opts =>
{
opts.BaseAddress = new("http://localhost:3000");
// Nuovo metodo
opts.ApiKey = "mck_..."; // API key di utente di sistema con i permessi desiderati
// Vecchio metodo
opts.Username = "ADMIN"; // Username di un utente di sistema con i permessi desiderati
opts.Password = "adminPassword"; // Password dell'utente di sistema
});
// ...
Utilizzo tramite Dependency Injection:
public class MambaSDKTestController(IMambaClient _mamba) : ControllerBase
{
// ...
[HttpGet("{id:guid}")]
public async Task<IActionResult> GetMambaTest(Guid id)
{
try
{
var app = await _mamba.GetApplicationById(id);
return Ok(app);
}
catch (ApiException apex) {
return StatusCode(apex.StatusCode, apex.Response);
}
}
}
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Caching.Memory (>= 10.0.11)
- Microsoft.Extensions.Http (>= 10.0.11)
- Microsoft.Extensions.Http.Polly (>= 10.0.11)
- Newtonsoft.Json (>= 13.0.4)
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 |
|---|---|---|
| 10.2.11 | 82 | 9/28/2026 |
| 10.2.10 | 84 | 9/28/2026 |
| 10.2.9 | 78 | 9/28/2026 |
| 10.2.5 | 83 | 9/22/2026 |
| 10.2.4 | 90 | 9/21/2026 |
| 10.2.3 | 86 | 9/21/2026 |
| 10.2.2 | 80 | 9/18/2026 |
| 10.2.0 | 88 | 9/17/2026 |
| 10.1.1 | 91 | 9/17/2026 |
| 10.1.0 | 90 | 9/17/2026 |
| 10.0.3 | 99 | 9/9/2026 |
| 10.0.2 | 94 | 9/7/2026 |
| 10.0.1 | 95 | 9/4/2026 |
| 10.0.0 | 96 | 9/3/2026 |
| 0.4.6 | 94 | 9/2/2026 |
| 0.4.5 | 85 | 9/2/2026 |
| 0.4.4 | 83 | 9/1/2026 |
| 0.4.3 | 89 | 9/1/2026 |
| 0.4.2 | 100 | 8/31/2026 |