JSolutionss.API.JSSHttpClient
1.1.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package JSolutionss.API.JSSHttpClient --version 1.1.7
NuGet\Install-Package JSolutionss.API.JSSHttpClient -Version 1.1.7
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="JSolutionss.API.JSSHttpClient" Version="1.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JSolutionss.API.JSSHttpClient" Version="1.1.7" />
<PackageReference Include="JSolutionss.API.JSSHttpClient" />
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 JSolutionss.API.JSSHttpClient --version 1.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JSolutionss.API.JSSHttpClient, 1.1.7"
#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 JSolutionss.API.JSSHttpClient@1.1.7
#: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=JSolutionss.API.JSSHttpClient&version=1.1.7
#tool nuget:?package=JSolutionss.API.JSSHttpClient&version=1.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Acerca
Permite encapsular las llamadas a servicios API.
Configuración y Uso
Configurar en Program.cs las siguientes lineas de codigo.
'''bash builder.Services.AddHttpClient(); builder.Services.AddSingleton<IHttpServiceFactory, HttpServiceFactory>(); '''
y luego en la Clase donde se usa, se debe codificar lo siguiente:
public class ServiceSample : IServiceSample
{
private readonly IHttpServiceFactory _httpServiceFactory;
public ServiceSample(IHttpServiceFactory httpServiceFactory)
{
this._httpServiceFactory = httpServiceFactory;
}
public async Task<IEnumerable<ItemModel>> GetAll(FilterModel filter)
{
try
{
return await _httpServiceFactory.ExecutePostAsync<IEnumerable<ItemModel>>(
baseUrl: "...url...",
metodo: "GetAll",
param: filter);
}
catch(Exception ex)
{
// Save log exception...
return null;
}
}
....
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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.
-
net6.0
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Net.Http.Headers (>= 2.2.0)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on JSolutionss.API.JSSHttpClient:
| Package | Downloads |
|---|---|
|
JSolutionss.API.MaestroProxy
Package Description |
|
|
JSolutionss.Proxy.Roles
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.14 | 134 | 1/3/2026 |
| 1.1.13 | 130 | 1/3/2026 |
| 1.1.12 | 214 | 12/24/2025 |
| 1.1.11 | 205 | 12/23/2025 |
| 1.1.10 | 208 | 12/23/2025 |
| 1.1.9 | 193 | 7/31/2025 |
| 1.1.8 | 284 | 4/15/2025 |
| 1.1.7 | 460 | 8/25/2023 |
| 1.1.6 | 284 | 8/4/2023 |
| 1.1.5 | 262 | 8/4/2023 |
| 1.1.4 | 280 | 6/15/2023 |
| 1.1.3 | 305 | 5/15/2023 |
| 1.1.2 | 275 | 5/15/2023 |
| 1.1.1 | 458 | 12/16/2022 |
| 1.1.0 | 440 | 12/16/2022 |
| 1.0.0 | 493 | 9/9/2022 |