DNV.Veracity.Services.Api.This
1.6.0
dotnet add package DNV.Veracity.Services.Api.This --version 1.6.0
NuGet\Install-Package DNV.Veracity.Services.Api.This -Version 1.6.0
<PackageReference Include="DNV.Veracity.Services.Api.This" Version="1.6.0" />
<PackageVersion Include="DNV.Veracity.Services.Api.This" Version="1.6.0" />
<PackageReference Include="DNV.Veracity.Services.Api.This" />
paket add DNV.Veracity.Services.Api.This --version 1.6.0
#r "nuget: DNV.Veracity.Services.Api.This, 1.6.0"
#:package DNV.Veracity.Services.Api.This@1.6.0
#addin nuget:?package=DNV.Veracity.Services.Api.This&version=1.6.0
#tool nuget:?package=DNV.Veracity.Services.Api.This&version=1.6.0
Veracity - My Services API v3 - This Client
Provides an async .NET client for the This view point in Veracity My Services API v3.
Allows manipulation and retrival of information related to a service.
Resources
- Administrators
- Services
- Subscribers
- Users
Example
With the nuget package installed, services for each resource may be individually configured, injected and requested inside your solution.
1. Configuration
To configure a resource service, introduce configuration in the form of OAuthHttpClientOptions:
appsettings.json
The
Thisview point only supports Client Credential Flow.
{
"OAuthHttpClients": [
...
{
"Name": "this-subscribers",
"Flow": "ClientCredentials",
"BaseUri": <BaseUri>,
"SubscriptionKey": <SubscriptionKey>,
"OAuthClientOptions": {
"Authority": <Authority>,
"ClientId": <ClientId>,
"ClientSecret": <ClientSecret>,
"Scopes": [ <Scope> ],
}
}
...
]
}
2. Registration
Register the service or services using extensions methods available from the DNV.Veracity.Services.Api.This.Extensions namespace.
startup.cs
Packages from
DNV.Veracity.Service.Apiare dependent on the DNV.OAuth.Api.HttpClient package, therefore the HttpClientFactory should also be injected.
public void ConfigureServices(IServiceCollection services)
{
...
services.AddOAuthHttpClientFactory(Congiuration.GetSection("OAuthHttpClients").Get<IEnumerable<OAuthHttpClientOptions>>());
...
services.AddThisSubscribers("this-subscribers")
...
}
3. Request service
Request the service from the constructor by its interface:
ExampleController.cs
public class ExampleController : Controller
{
...
private readonly IThisSubscribers _thisSubscribers;
...
public ExampleController(IThisSubscribers thisSubscribers)
{
...
_thisSubscribers = thisSubscribers ?? throw new ArgumentNullException(nameof(thisSubscribers));
...
}
...
public async Task<IActionResult> FetchSubscribers(int page, int pageSize)
{
return Json(await _thisSubscribers.List(page, pageSize));
}
...
}
| 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 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
- DNV.Veracity.Services.Api (>= 1.6.0)
- DNV.Veracity.Services.Api.This.Abstractions (>= 1.6.0)
-
net8.0
- DNV.Veracity.Services.Api (>= 1.6.0)
- DNV.Veracity.Services.Api.This.Abstractions (>= 1.6.0)
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 |
|---|---|---|
| 1.6.0 | 136 | 2/26/2026 |
| 1.5.3 | 3,230 | 2/3/2026 |
| 1.5.3-preview.1772101067 | 68 | 2/26/2026 |
| 1.5.3-preview.1772100948 | 67 | 2/26/2026 |
| 1.5.2 | 18,879 | 9/27/2024 |
| 1.5.1 | 13,729 | 7/22/2024 |
| 1.5.0 | 4,965 | 5/13/2024 |
| 1.4.2 | 10,280 | 12/6/2023 |
| 1.4.1 | 239 | 11/9/2023 |
| 1.4.0 | 286 | 10/24/2023 |
| 1.3.3 | 332 | 6/20/2023 |
| 1.3.2 | 299 | 6/20/2023 |
| 1.3.1 | 302 | 6/20/2023 |
| 1.3.0 | 340 | 6/8/2023 |