Soenneker.Validators.ZipCode.Exists 4.0.2571

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Validators.ZipCode.Exists --version 4.0.2571
                    
NuGet\Install-Package Soenneker.Validators.ZipCode.Exists -Version 4.0.2571
                    
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.Validators.ZipCode.Exists" Version="4.0.2571" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Validators.ZipCode.Exists" Version="4.0.2571" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Validators.ZipCode.Exists" />
                    
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.Validators.ZipCode.Exists --version 4.0.2571
                    
#r "nuget: Soenneker.Validators.ZipCode.Exists, 4.0.2571"
                    
#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.Validators.ZipCode.Exists@4.0.2571
                    
#: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.Validators.ZipCode.Exists&version=4.0.2571
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Validators.ZipCode.Exists&version=4.0.2571
                    
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

Soenneker.Validators.ZipCode.Exists

A validation module checking for existence of US ZipCodes, updated daily (if available) Thread-safe, disposable. Register as a singleton if you don't want to load the resource every time the validator is instantiated.

Install

dotnet add package Soenneker.Validators.ZipCode.Exists

Quick start

using Soenneker.Validators.ZipCode.Exists.Registrars;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
var result = services.AddZipCodeExistsValidatorAsSingleton();

Adds IZipCodeExistsValidator as a singleton service. Recommended if you don't want to load the resource every time the validator is instantiated.

What you get

  • IZipCodeExistsValidator — A validation module checking for existence of US ZipCodes, updated daily (if available) Thread-safe, disposable. Register as a singleton if you don't want to load the resource every time the validator is instantiated.
  • ZipCodeExistsValidatorRegistrar — A validation module checking for existence of US ZipCodes, updated daily (if available).

API at a glance

API What it does Result / important behavior
IZipCodeExistsValidator.Validate(zipCode, cancellationToken) Validates a 5-digit US ZipCode. True if the ZipCode is valid, otherwise false.
ZipCodeExistsValidatorRegistrar.AddZipCodeExistsValidatorAsSingleton(services) Adds IZipCodeExistsValidator as a singleton service. Recommended if you don't want to load the resource every time the validator is instantiated. The same service collection, so additional registrations can be chained.
ZipCodeExistsValidatorRegistrar.AddZipCodeExistsValidatorAsScoped(services) Adds IZipCodeExistsValidator as a scoped service. The same service collection, so additional registrations can be chained.

Practical notes

  • Cancellation stops pending work; it does not undo work that has already completed.
  • Calls that return a cached or singleton value reuse the same instance until the owning service is disposed.
  • Dispose instances you own when their scope ends so held resources can be released.
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.2583 52 9/1/2026
4.0.2582 55 9/1/2026
4.0.2581 69 8/31/2026
4.0.2579 73 8/31/2026
4.0.2578 62 8/31/2026
4.0.2577 75 8/31/2026
4.0.2576 77 8/31/2026
4.0.2575 81 8/30/2026
4.0.2573 73 8/30/2026
4.0.2572 71 8/30/2026
4.0.2571 85 8/30/2026
4.0.2570 77 8/30/2026
4.0.2569 75 8/30/2026
4.0.2567 72 8/30/2026
4.0.2565 78 8/29/2026
4.0.2563 79 8/29/2026
4.0.2562 75 8/29/2026
4.0.2561 73 8/29/2026
4.0.2559 104 8/26/2026
4.0.2558 79 8/26/2026
Loading failed

Update dependency Soenneker.Utils.File to 4.0.2235 (#3084)