apiConnectorCore 1.0.3
dotnet add package apiConnectorCore --version 1.0.3
NuGet\Install-Package apiConnectorCore -Version 1.0.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="apiConnectorCore" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="apiConnectorCore" Version="1.0.3" />
<PackageReference Include="apiConnectorCore" />
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 apiConnectorCore --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: apiConnectorCore, 1.0.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 apiConnectorCore@1.0.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=apiConnectorCore&version=1.0.3
#tool nuget:?package=apiConnectorCore&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
apiConnectorCore
Overview
The apiConnectorCore package is the .NET Core compatible successor to the legacy connector. It wraps authenticated HTTP requests against Net3000 APIs, supports typed responses, and includes asynchronous error forwarding that works with ASP.NET Core middleware and dependency injection.
Public API
<details> <summary>net3000.apiConnector</summary>
| Member | Summary | Parameters |
|---|---|---|
Task PostErrorDetailAsync(IExceptionHandlerPathFeature exceptionHandlerPathFeature, HttpContext context, string? customMessage) |
Post Error Detail Async. | exceptionHandlerPathFeature (IExceptionHandlerPathFeature), context (HttpContext), customMessage (string?) |
string getRawResponse(string url) |
Get Raw Response. | url (string) |
apiResponse getRequest(string url) |
Get Request. | url (string) |
</details>
Usage Notes
- Set the
configurationandmyContextproperties so that account headers and tokens are injected before callinggetRequest. - Use the generic overload
getRequest<T>when a typed API response is required. PostErrorDetailAsynccan be plugged into ASP.NET Core exception handlers to mirror legacy error logging behaviour.
License
This library is proprietary to Net3000. Redistribution or use outside Net3000.ca solutions is not permitted.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.AspNetCore.Diagnostics (>= 2.3.0)
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.Extensions.Configuration (>= 10.0.1)
- net3000.common (>= 10.0.3)
- net3000.common.models (>= 1.0.9)
- Newtonsoft.Json (>= 13.0.4)
- System.IdentityModel.Tokens.Jwt (>= 8.15.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.