![]() |
VOOZH | about |
dotnet add package UKHO.ADDS.Clients.SalesCatalogueService --version 1.0.60618-beta.4
NuGet\Install-Package UKHO.ADDS.Clients.SalesCatalogueService -Version 1.0.60618-beta.4
<PackageReference Include="UKHO.ADDS.Clients.SalesCatalogueService" Version="1.0.60618-beta.4" />
<PackageVersion Include="UKHO.ADDS.Clients.SalesCatalogueService" Version="1.0.60618-beta.4" />Directory.Packages.props
<PackageReference Include="UKHO.ADDS.Clients.SalesCatalogueService" />Project file
paket add UKHO.ADDS.Clients.SalesCatalogueService --version 1.0.60618-beta.4
#r "nuget: UKHO.ADDS.Clients.SalesCatalogueService, 1.0.60618-beta.4"
#:package UKHO.ADDS.Clients.SalesCatalogueService@1.0.60618-beta.4
#addin nuget:?package=UKHO.ADDS.Clients.SalesCatalogueService&version=1.0.60618-beta.4&prereleaseInstall as a Cake Addin
#tool nuget:?package=UKHO.ADDS.Clients.SalesCatalogueService&version=1.0.60618-beta.4&prereleaseInstall as a Cake Tool
This repository stores code generated to serve as NuGet packages supporting the UKHO ADDS services.
These packages are designed as client libraries to facilitate easier consumption of our APIs.
/src - Contains the source code for the NuGet packages./tests - Unit tests and integration tests for the packages.To get started with using or contributing to these packages, follow these steps:
git clone <repository-url>
Kiota is a http client generation tool developed by Microsoft which we have used to generate clients using the OpenApi documents found on the UKHO github. For more infomation please refer to the documents here: Kiota.
This library provides extension methods to simplify the registration and configuration of Kiota-generated API clients in ASP.NET Core applications using dependency injection. It ensures that Kiota middleware handlers, authentication providers, and HTTP clients are set up in a consistent and maintainable way.
Register the default Kiota handlers, client factory, and your authentication provider:
services.AddKiotaDefaults(new T()); where T implemented IAuthenticationProvider
There are some standard AuthenticationProviders that can be used out of the box:
When no authentication is required (interacting with mock services): AnonymousAuthenticationProvider
services.AddKiotaDefaults(new AnonymousAuthenticationProvider());
For Authentication with Azure: AzureIdentityAuthenticationProvider
services.AddKiotaDefaults(new AzureIdentityAuthenticationProvider(new DefaultAzureCredential()));
Register the kiota client which will work with the previous defaults that have been registered:
services.RegisterKiotaClient<MyKiotaClient>( "MyApi:Endpoint", new Dictionary<string, string> { { "Custom-Header", "Value" } } );
"MyApi:Endpoint" is the configuration key for the API base URL.Add your endpoint to appsettings.json: { "MyApi:Endpoint": "https://api.example.com/" }
After registration, inject your Kiota client anywhere in your application:
public class MyService { private readonly MyKiotaClient _client;
public MyService(MyKiotaClient client)
{
_client = client;
}
// Use _client to call your API
}
AddKiotaDefaults<T>(IServiceCollection, T authProvider)
RegisterKiotaClient<TClient>(IServiceCollection, string endpointConfigKey, IDictionary<string, string>? headers = null)
Internal helpers:
AddKiotaHandlers(IServiceCollection)AddConfiguredHttpClient<TClient>(IServiceCollection, string endpointConfigKey, IDictionary<string, string>? headers = null)KiotaClientFactory.GetDefaultHandlerActivatableTypes().IRequestAdapter.For further customization, extend or override the provided helpers as needed.
Your feedback is crucial to improving these packages. If you encounter issues or have suggestions, please open an issue on GitHub or contact the maintainers.
This project is licensed under the MIT License. See the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.60618-beta.4 | 27 | 6/18/2026 |
| 1.0.60422-alpha.11 | 682 | 4/22/2026 |
| 1.0.60422-alpha.4 | 55 | 4/22/2026 |
| 1.0.60421-alpha.2 | 50 | 4/21/2026 |
| 0.0.50728-alpha.8 | 167 | 7/28/2025 |
| 0.0.50709-alpha.1 | 153 | 7/9/2025 |
| 0.0.50701-alpha.2 | 859 | 7/1/2025 |
| 0.0.50625-alpha.3 | 187 | 6/25/2025 |
| 0.0.50520-alpha.3 | 164 | 5/20/2025 |
| 0.0.50512-alpha.3 | 605 | 5/12/2025 |
| 0.0.50506-alpha.1 | 171 | 5/6/2025 |
| 0.0.50422-alpha.3 | 236 | 4/25/2025 |
| 0.0.50415-alpha.1 | 1,939 | 4/15/2025 |
| 0.0.50312-alpha.3 | 163 | 3/12/2025 |