Soenneker.Validators.ZipCode.Exists
4.0.2565
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.Validators.ZipCode.Exists --version 4.0.2565
NuGet\Install-Package Soenneker.Validators.ZipCode.Exists -Version 4.0.2565
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.2565" />
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.2565" />
<PackageReference Include="Soenneker.Validators.ZipCode.Exists" />
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.2565
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Validators.ZipCode.Exists, 4.0.2565"
#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.2565
#: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.2565
#tool nuget:?package=Soenneker.Validators.ZipCode.Exists&version=4.0.2565
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net10.0
- Soenneker.Data.ZipCode (>= 4.0.1017)
- Soenneker.Utils.File (>= 4.0.2230)
- Soenneker.Utils.Paths.Resources (>= 4.0.220)
- Soenneker.Validators.Validator (>= 4.0.734)
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.2576 | 0 | 8/31/2026 |
| 4.0.2575 | 0 | 8/30/2026 |
| 4.0.2573 | 0 | 8/30/2026 |
| 4.0.2572 | 0 | 8/30/2026 |
| 4.0.2571 | 0 | 8/30/2026 |
| 4.0.2570 | 6 | 8/30/2026 |
| 4.0.2569 | 31 | 8/30/2026 |
| 4.0.2567 | 31 | 8/30/2026 |
| 4.0.2565 | 37 | 8/29/2026 |
| 4.0.2563 | 42 | 8/29/2026 |
| 4.0.2562 | 37 | 8/29/2026 |
| 4.0.2561 | 33 | 8/29/2026 |
| 4.0.2559 | 96 | 8/26/2026 |
| 4.0.2558 | 72 | 8/26/2026 |
| 4.0.2557 | 67 | 8/26/2026 |
| 4.0.2556 | 69 | 8/26/2026 |
| 4.0.2555 | 100 | 8/22/2026 |
| 4.0.2554 | 81 | 8/22/2026 |
| 4.0.2553 | 92 | 8/22/2026 |
Loading failed
Update dependency Soenneker.Utils.File to 4.0.2230 (#3074)