MikValSor.ImmutableStore 1.0.0

Library for storage of immutable .Net types.

Install-Package MikValSor.ImmutableStore -Version 1.0.0
dotnet add package MikValSor.ImmutableStore --version 1.0.0
<PackageReference Include="MikValSor.ImmutableStore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MikValSor.ImmutableStore --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Library for storage of immutable .Net types.

Nuget package: https://www.nuget.org/packages/MikValSor.ImmutableStore

Example:

var fileStore = new MikValSor.Immutable.FileStorage(".");
var store = new MikValSor.Immutable.Store(fileStore);

MikValSor.Immutable.Persisted<string> presisted = await store.EnsurePresistAsync("StringsAreImmutable");

System.Console.WriteLine($"presisted.Checksum.ToBase64(): {presisted.Checksum.ToBase64()}");

/**
    Output:
    presisted.Checksum.ToBase64(): YZrsXP5n1OVHAFK8YfUZVXpzXFmt7H9sCeaPhMOfdP32LnUvP+HmNFvHVs1CsYR6IzSz3gwi+l285jvV2aWQng==
**/

var checksum = MikValSor.Immutable.Checksum.Get("YZrsXP5n1OVHAFK8YfUZVXpzXFmt7H9sCeaPhMOfdP32LnUvP+HmNFvHVs1CsYR6IzSz3gwi+l285jvV2aWQng==");
MikValSor.Immutable.StoreResult<string> storeResult = await store.TryGetAsync<string>(checksum);

System.Console.WriteLine($"storeResult.GetValue(): {storeResult.GetValue()}");

/**
    Output:
    storeResult.GetValue(): StringsAreImmutable
**/

Library for storage of immutable .Net types.

Nuget package: https://www.nuget.org/packages/MikValSor.ImmutableStore

Example:

var fileStore = new MikValSor.Immutable.FileStorage(".");
var store = new MikValSor.Immutable.Store(fileStore);

MikValSor.Immutable.Persisted<string> presisted = await store.EnsurePresistAsync("StringsAreImmutable");

System.Console.WriteLine($"presisted.Checksum.ToBase64(): {presisted.Checksum.ToBase64()}");

/**
    Output:
    presisted.Checksum.ToBase64(): YZrsXP5n1OVHAFK8YfUZVXpzXFmt7H9sCeaPhMOfdP32LnUvP+HmNFvHVs1CsYR6IzSz3gwi+l285jvV2aWQng==
**/

var checksum = MikValSor.Immutable.Checksum.Get("YZrsXP5n1OVHAFK8YfUZVXpzXFmt7H9sCeaPhMOfdP32LnUvP+HmNFvHVs1CsYR6IzSz3gwi+l285jvV2aWQng==");
MikValSor.Immutable.StoreResult<string> storeResult = await store.TryGetAsync<string>(checksum);

System.Console.WriteLine($"storeResult.GetValue(): {storeResult.GetValue()}");

/**
    Output:
    storeResult.GetValue(): StringsAreImmutable
**/

Release Notes

v1.0.0
   - Initial release.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 3,358 4/12/2019