Soenneker.Nws.OpenApiClientUtil 4.0.175

Prefix Reserved
dotnet add package Soenneker.Nws.OpenApiClientUtil --version 4.0.175
                    
NuGet\Install-Package Soenneker.Nws.OpenApiClientUtil -Version 4.0.175
                    
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="4.0.175" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Nws.OpenApiClientUtil" Version="4.0.175" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Nws.OpenApiClientUtil" />
                    
Project file
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 4.0.175
                    
#r "nuget: Soenneker.Nws.OpenApiClientUtil, 4.0.175"
                    
#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@4.0.175
                    
#: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=4.0.175
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Nws.OpenApiClientUtil&version=4.0.175
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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.

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
4.0.175 51 9/18/2026
4.0.174 48 9/17/2026
4.0.173 45 9/17/2026
4.0.172 45 9/16/2026
4.0.171 45 9/16/2026
4.0.170 52 9/16/2026
4.0.169 51 9/16/2026
4.0.168 57 9/15/2026
4.0.167 94 9/13/2026
4.0.166 82 9/13/2026
4.0.165 90 9/13/2026
4.0.164 89 9/12/2026
4.0.163 84 9/12/2026
4.0.162 92 9/12/2026
4.0.161 85 9/12/2026
4.0.160 102 9/9/2026
4.0.159 99 9/9/2026
4.0.158 102 9/9/2026
4.0.157 97 9/8/2026
4.0.156 107 9/8/2026
Loading failed