MyAutoMapper 2.0.0

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

ProtectedBrowserStorage

Provides services for storing data in the browser's localStorage. The stored data is protected using AES encryption and decryption functions. I'm use this in my Blazor WebAssembly client-side project.

Install

Install-Package ProtectedBrowserStorage.NETStandard -Version x.x

x.x is version of package for use last version see https://www.nuget.org/packages/ProtectedBrowserStorage.NETStandard

How to use

Add this line to Startup.cs. Register into DI container

services.AddProtectedLocalStore(new EncryptionService(
                new KeyInfo("45BLO2yoJkvBwz99kBEMlNkxvL40vUSGaqr/WBu3+Vg=", "Ou3fn+I9SVicGWMLkFEgZQ==")));

For Use Blazor WebAssembly client-side Register into Program.cs

builder.Services.AddProtectedLocalStore(new EncryptionService(
                new KeyInfo("45BLO2yoJkvBwz99kBEMlNkxvL40vUSGaqr/WBu3+Vg=", "Ou3fn+I9SVicGWMLkFEgZQ==")));

In _Imports.razor add this

@using ProtectedLocalStore
@inject ProtectedLocalStore _protectedLocalStore

Now we can use it in our Component.

Use browser session storage

set Synchronous protected data

_protectedLocalStore.SetSession("key", data);

set Asynchronous protected data

_protectedLocalStore.SetSessionAsync("key", data);

get Synchronous data

_protectedLocalStore.GetSession<T>("key");

get Asynchronous data

_protectedLocalStore.GetSessionAsync<T>("key");

Use browser local storage

set Synchronous protected data

_protectedLocalStore.SetLocal("key", data);

set Asynchronous protected data

_protectedLocalStore.SetLocalAsync("key", data);

get Synchronous data

_protectedLocalStore.GetLocal<T>("key");

get Asynchronous data

_protectedLocalStore.GetLocalAsync<T>("key");

*** I'm glad to see your comments ***

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net7.0

    • No dependencies.

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
2.0.0.1 253 8/27/2023
2.0.0 178 8/27/2023
1.0.0 190 8/24/2023