UKHO.ADDS.Clients.FileShareService.ReadWrite
0.0.50701-alpha.2
Prefix Reserved
See the version list below for details.
dotnet add package UKHO.ADDS.Clients.FileShareService.ReadWrite --version 0.0.50701-alpha.2
NuGet\Install-Package UKHO.ADDS.Clients.FileShareService.ReadWrite -Version 0.0.50701-alpha.2
<PackageReference Include="UKHO.ADDS.Clients.FileShareService.ReadWrite" Version="0.0.50701-alpha.2" />
<PackageVersion Include="UKHO.ADDS.Clients.FileShareService.ReadWrite" Version="0.0.50701-alpha.2" />
<PackageReference Include="UKHO.ADDS.Clients.FileShareService.ReadWrite" />
paket add UKHO.ADDS.Clients.FileShareService.ReadWrite --version 0.0.50701-alpha.2
#r "nuget: UKHO.ADDS.Clients.FileShareService.ReadWrite, 0.0.50701-alpha.2"
#:package UKHO.ADDS.Clients.FileShareService.ReadWrite@0.0.50701-alpha.2
#addin nuget:?package=UKHO.ADDS.Clients.FileShareService.ReadWrite&version=0.0.50701-alpha.2&prerelease
#tool nuget:?package=UKHO.ADDS.Clients.FileShareService.ReadWrite&version=0.0.50701-alpha.2&prerelease
UKHO.ADDS.Clients
Purpose
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.
Contents
/src- Contains the source code for the NuGet packages./tests- Unit tests and integration tests for the packages.
Getting Started
To get started with using or contributing to these packages, follow these steps:
- Clone the repository:
git clone <repository-url> - Navigate to the package you're interested in (located in /src) and follow the instructions in the README.md file.
Kiota Clients
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.
- Consuming the client When consuming a kiota client a client request adpater is required. HttpClientRequestAdapter can be found in the library Microsoft.Kiota.Http.HttpClientLibrary.
Set the baseUrl:
adapter.BaseUrl = {baseURL}
To inspect headers in the client, pass in
HeadersInspectionHandlerOption headers = new HeadersInspectionHandlerOption() { InspectResponseHeaders = true, InspectRequestHeaders = true };
consume the header handler option via
response = await {path}.PostAsync(requestConfiguration => requestConfiguration.Options.Add(headers));
Inspect the headers by inspecting the HeadersInspectionHandlerOption object.
Authentication An AuthenticationProvider must be provided to the adapter. This can be achieved by implementing the interface IAuthenticationProvider found in the library Microsoft.Kiota.Abstractions.Authentication. An example implementation can be found below:
public Task AuthenticateRequestAsync(RequestInformation request, Dictionary<string, object> additionalAuthenticationContext = null, CancellationToken cancellationToken = default) { if (request == null) { throw new ArgumentNullException(nameof(request), "Request information cannot be null."); } return GetManagedIdentityAuthAsync(resourceId).ContinueWith(task => { request.Headers.Add("Authorization", "Bearer " + task.Result); }, cancellationToken); }
Feedback
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.
License
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 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. |
-
net8.0
- UKHO.ADDS.Clients.FileShareService.ReadOnly (>= 0.0.50701-alpha.2)
- UKHO.ADDS.Infrastructure.Serialization (>= 0.0.50327-alpha.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 |
|---|---|---|
| 0.0.50728-alpha.8 | 152 | 7/28/2025 |
| 0.0.50709-alpha.1 | 138 | 7/9/2025 |
| 0.0.50701-alpha.2 | 853 | 7/1/2025 |
| 0.0.50625-alpha.3 | 221 | 6/25/2025 |
| 0.0.50520-alpha.3 | 800 | 5/20/2025 |
| 0.0.50512-alpha.3 | 312 | 5/12/2025 |
| 0.0.50506-alpha.1 | 284 | 5/6/2025 |
| 0.0.50422-alpha.3 | 132 | 4/25/2025 |
| 0.0.50415-alpha.1 | 185 | 4/15/2025 |
| 0.0.50312-alpha.3 | 160 | 3/12/2025 |