OptionA.Blazor.Storage 10.0.0

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

OptionA.Blazor.Storage

Services to access Local storage, session storage and indexed db (though indexed db is still a work in progress

For full documentation, releasenotes and examples, go to option-a.tech. To full source can be viewed on github.

Getting started

To start using the OptionA.Blazor.Storage include the required depencenies in your service provider. The package uses the default .Net Dependency Injection.

Service collection

To add the services you can use the extension method AddStorageService, AddDatabaseService or AddStorageServices.

Use package

Inject either the IStorageService, IDatabaseService or IFileSystem in your component and service.

Latest release notes

9.1.0

Overall

Added Filesystem sypport

New features
  • Added IFilesystem implementation to interact with the file system
Solved Bugs
  • None

Services

Following are the suppored services.

Storage service

IStorageService

Service for accessing local and session storage

Database service (WIP)

IDatabaseService

Service for accessing the local indexed database. Uses database migration to keep the indexed db up to date.

Filesystem service

IFilesystem

Service for accessing the file system. Uses the javascript Filesystem API to interact with the file system. Most interaction can only be done in the user initiated event (like pressing a button).

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
10.0.0 217 12/24/2025
9.1.1 206 1/30/2025
9.1.0 188 1/29/2025
9.0.1 251 1/23/2025
9.0.0 295 11/27/2024
8.0.2 323 11/27/2024
8.0.1 251 10/21/2024
8.0.0 497 11/23/2023
7.0.4 487 10/14/2023
7.0.2 397 6/26/2023
7.0.1 242 6/22/2023
7.0.0 426 4/6/2023
1.0.2 350 2/24/2023
1.0.1 316 2/24/2023
1.0.0 338 2/24/2023

Upgraded to .NET 10