MondoCore.Common 3.6.0

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

MondoCore.Common

General purpose classes and interfaces used by other MondoCore libraries.

Table of Contents

<a href="interfaces" />

<br/>

Interfaces

IBlobStore

Interface for accessing blobs/files.

Implementations
  • FileStore
  • MemoryStore

<br>


<a href="IBlobStore" />

IBlobStore<T>

Interface for accessing blobs/files.

<small>IBlobStoreReader<T></small> <b>Reader</b>

Returns an IBlobStoreReader interface to read blobs from the store

<small>IBlobStoreWriter<T></small> <b>Writer</b>

Returns an IBlobStoreWriter interface to write blobs to the store

Implementations

<br>


<a href="IBlobStoreReader" />

IBlobStoreReader<T>

Interface for reading blobs/files.

<small>Task</small> <b>Get</b>(<small>string id, Stream destination, CancellationToken cancellationToken = default</small>)

Loads a blob from the store.

<small>Task<Stream></small> <b>OpenRead</b>(<small>string id, CancellationToken cancellationToken = default</small>)

Returns a stream that the blob can be read from. Be sure to dispose of the stream using DisposeAsync (i.e. await using)

<small>Task<IEnumerable<string>></small> <b>Find</b>(<small>string filter, Stream destination, CancellationToken cancellationToken = default</small>)

Finds all blobs that meet the filter. The filter uses standard "." file name (id) matching. The matching filename/ids are returned.

<small>Task</small> <b>Enumerate</b>(<small>string filter, Func<IBlob, Task> fnEach, bool asynchronous = true, CancellationToken cancellationToken = default</small>)

Finds all blobs that meet the filter and enumerates over the that list using the given Function. The filter uses standard "." file name (id) matching.

<br/>


<a href="IBlobStoreWriter" />

IBlobStoreWriter<T>

Interface for writing blobs/files.


<a href="ICache" />

ICache

Interface for caching data.

Implementations
  • MemoryCache <br>

<a href="IMessageQueue" />

IMessageQueue<T>

Interface for sending messages

<small>async Task</small> <b>Send</b>(<small>T message, DateTimeOffset? sendOn = null, string? correlationId = null, CancellationToken cancellationToken = default</small>)

Sends a message to the queue with an optional date/time offset.

Implementations

<a href="IMessageQueueFactory" />

IMessageQueueFactory<T>

Interface for creating message queues on the fly

<small>async Task</small> <b>CreateQueue</b>(<small>string queueName</small>)

Creates a message queue (doesn't physically create the queue just the object to access it).

<br>

<a href="extensions" />

Extensions

<a href="IBlobStoreReaderEx" />

IBlobStoreReader<T>

<small>async Task<T></small> <b>GetObject</b>(<small>CancellationToken cancellationToken = default</small>)

Loads an object from a json blob


<a href="IBlobStoreWriterEx" />

IBlobStoreWriter<T>

<small>async Task</small><b> PutObject</b>(<small>T obj, CancellationToken cancellationToken = default</small>)

Saves an object as a json blob


<a href="IEnumerableEx" />

IEnumerable<T>

<small>async Task</small> <b>ParallelForEach</b>(<small>Func<long, T, Task> fnEach, int maxParallelism = 128, CancellationToken cancelToken = default</small>)

Iterates over a list of objects in parallel and runs a function on each one.

Exception<T>

<small>async Task</small> <b>WithData</b>(<small>object data</small>)

Adds the given data to the exception's Data dictionary. This is useful for adding additional context to exceptions when they are thrown.

throw new ArgumentException("Make should be a Pontiac").WithData( new { Make = "Chevy"} );

<br>

<a href="classes" />

Classes

FileStore

Implements the blob store interface over the local file system using the IBlobStore interface


MemoryCache

Implements an in memory cache using the ICache interface


MemoryStore

Implements an in memory blob store using the IBlobStore interface


License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (12)

Showing the top 5 NuGet packages that depend on MondoCore.Common:

Package Downloads
MondoCore.Security

Contains classes for Encryption, Password hashing and TOTP

MondoCore.Azure.Storage

Implementation of IBlobStore interfaces for Azure Blob Storage

MondoCore.ApplicationInsights

Implementation of ILog interface for Application Insights

MondoCore.Azure.Storage.Queue

An Azure Storage Queue implementation of IMessageQueue

MondoCore.Data

Interfaces and extensions for repositories (databases and collections)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.6.0 92 2/27/2026
3.5.3 142 2/25/2026
3.5.2 315 2/17/2026
3.5.1 104 2/13/2026
3.5.0 145 2/9/2026
3.0.1 94 2/2/2026
3.0.0 1,212 5/10/2025
2.3.0 145 4/26/2025
2.1.0 301 10/23/2024
2.0.0 177 10/4/2024
1.5.2 1,020 8/13/2021
1.5.1 28,910 3/20/2021
1.5.0 1,644 2/20/2021
1.4.1 870 2/8/2021
1.4.0 1,560 1/27/2021
1.3.0 1,384 1/10/2021
1.2.3 605 12/24/2020
1.2.2 637 12/13/2020
1.2.1 1,563 12/6/2020
1.2.0 1,551 9/19/2020
Loading failed