Geoapify.Storage
1.5.0
dotnet add package Geoapify.Storage --version 1.5.0
NuGet\Install-Package Geoapify.Storage -Version 1.5.0
<PackageReference Include="Geoapify.Storage" Version="1.5.0" />
<PackageVersion Include="Geoapify.Storage" Version="1.5.0" />
<PackageReference Include="Geoapify.Storage" />
paket add Geoapify.Storage --version 1.5.0
#r "nuget: Geoapify.Storage, 1.5.0"
#:package Geoapify.Storage@1.5.0
#addin nuget:?package=Geoapify.Storage&version=1.5.0
#tool nuget:?package=Geoapify.Storage&version=1.5.0
Geoapify.Storage
Adds abstract support for local storage of results from the Geoapify.SDK.
Usage
This package is normally not used in isolation, as it contains abstract definitions required for local storage, as well as the StorageUpdaterService.
After adding this package, add this to your Dependency Injection setup:
services.AddGeoapify(yourApiKey)
.AddStorageUpdaterService(); // <-- This line is new
Do note that you also need to add some form of database for storage, e.g. Geoapify.Storage.MongoDB.
Also you can supply a config => { } argument to AddStorageUpdaterService() if you want to customize intervals etc.
Furthermore if you want to react to addresses that has changed, implement one (or more) IAddressChangedHandler classes and add those to the Dependency Injection setup.
services.AddGeoapify(yourApiKey)
.AddStorageUpdaterService()
.AddAddressChangedHandler<MyHandler>(); // <-- This line is new
Custom implementation
If you want to provide your own storage implementation, just implement the following interfaces and dependency inject them:
IAddressRepository
| 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. |
-
net10.0
- Geoapify.DependencyInjection (>= 1.5.0)
- Geoapify.SDK (>= 1.5.0)
- Microsoft.Extensions.Configuration (>= 10.0.8)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.8)
- Microsoft.Extensions.Configuration.UserSecrets (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Hosting (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Geoapify.Storage:
| Package | Downloads |
|---|---|
|
Geoapify.Storage.MongoDB
Adds MongoDB support for local storage of results from the Geoapify.SDK. |
GitHub repositories
This package is not used by any popular GitHub repositories.