Soenneker.Nws.OpenApiClientUtil
11.0.261
Prefix Reserved
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 Soenneker.Nws.OpenApiClientUtil --version 11.0.261
NuGet\Install-Package Soenneker.Nws.OpenApiClientUtil -Version 11.0.261
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="Soenneker.Nws.OpenApiClientUtil" Version="11.0.261" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Nws.OpenApiClientUtil" Version="11.0.261" />
<PackageReference Include="Soenneker.Nws.OpenApiClientUtil" />
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 Soenneker.Nws.OpenApiClientUtil --version 11.0.261
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Nws.OpenApiClientUtil, 11.0.261"
#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 Soenneker.Nws.OpenApiClientUtil@11.0.261
#: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=Soenneker.Nws.OpenApiClientUtil&version=11.0.261
#tool nuget:?package=Soenneker.Nws.OpenApiClientUtil&version=11.0.261
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Nws.OpenApiClientUtil
Provides a configured National Weather Service client and reuses it for the lifetime of the registered service.
Installation
dotnet add package Soenneker.Nws.OpenApiClientUtil
Configuration
{
"Nws": {
"UserAgent": "my-weather-app/1.0 (contact@example.com)"
}
}
Usage
using Soenneker.Nws.OpenApiClientUtil.Abstract;
using Soenneker.Nws.OpenApiClientUtil.Registrars;
services.AddNwsOpenApiClientUtilAsSingleton();
INwsOpenApiClientUtil nws = serviceProvider
.GetRequiredService<INwsOpenApiClientUtil>();
var client = await nws.Get(cancellationToken);
var alertTypes = await client.Alerts.Types.GetAsync(cancellationToken: cancellationToken);
Use AddNwsOpenApiClientUtilAsScoped() when each application scope should have its own generated client wrapper. The underlying HTTP provider remains shared and is disposed by the service container at shutdown.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- Soenneker.Nws.HttpClients (>= 11.0.206)
- Soenneker.Nws.OpenApiClient (>= 11.0.98)
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 |
|---|---|---|
| 11.0.263 | 0 | 12/3/2026 |
| 11.0.262 | 0 | 12/3/2026 |
| 11.0.261 | 48 | 12/3/2026 |
| 11.0.260 | 45 | 12/3/2026 |
| 11.0.259 | 50 | 12/3/2026 |
| 11.0.258 | 45 | 12/2/2026 |
| 11.0.257 | 49 | 12/2/2026 |
| 11.0.255 | 43 | 12/2/2026 |
| 11.0.254 | 49 | 12/2/2026 |
| 11.0.253 | 51 | 12/2/2026 |
| 11.0.252 | 52 | 12/2/2026 |
| 11.0.251 | 55 | 12/1/2026 |
| 11.0.250 | 51 | 12/1/2026 |
| 11.0.249 | 46 | 12/1/2026 |
| 11.0.248 | 89 | 12/1/2026 |
| 11.0.247 | 87 | 12/1/2026 |
| 11.0.246 | 91 | 11/30/2026 |
| 11.0.245 | 93 | 11/30/2026 |
| 11.0.244 | 96 | 11/29/2026 |
| 11.0.243 | 98 | 11/21/2026 |
Loading failed
Updated Soenneker.Nws.HttpClients to 11.0.206