MondoCore.Common
3.6.0
dotnet add package MondoCore.Common --version 3.6.0
NuGet\Install-Package MondoCore.Common -Version 3.6.0
<PackageReference Include="MondoCore.Common" Version="3.6.0" />
<PackageVersion Include="MondoCore.Common" Version="3.6.0" />
<PackageReference Include="MondoCore.Common" />
paket add MondoCore.Common --version 3.6.0
#r "nuget: MondoCore.Common, 3.6.0"
#:package MondoCore.Common@3.6.0
#addin nuget:?package=MondoCore.Common&version=3.6.0
#tool nuget:?package=MondoCore.Common&version=3.6.0
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
- AzureBlobStorage<T> (in MondoCore.Azure.Storage)
- AzureAppendBlobStorage<T> (in MondoCore.Azure.Storage)
- AzurePageBlobStorage<T> (in MondoCore.Azure.Storage)
<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
- ServiceBusQueue<T> (in MondoCore.Azure.ServiceBus)
- AzureStorageQueue<T> (in MondoCore.Azure.Storage.Queue)
<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 | Versions 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. |
-
.NETStandard 2.1
- MondoCore.Collections (>= 2.5.1)
- System.Text.Json (>= 10.0.3)
- System.Threading.Tasks.Dataflow (>= 10.0.3)
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 |