Yautbox.InMemory
1.1.1
dotnet add package Yautbox.InMemory --version 1.1.1
NuGet\Install-Package Yautbox.InMemory -Version 1.1.1
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="Yautbox.InMemory" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yautbox.InMemory" Version="1.1.1" />
<PackageReference Include="Yautbox.InMemory" />
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 Yautbox.InMemory --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Yautbox.InMemory, 1.1.1"
#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 Yautbox.InMemory@1.1.1
#: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=Yautbox.InMemory&version=1.1.1
#tool nuget:?package=Yautbox.InMemory&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Yautbox.InMemory
In-memory infrastructure provider for Yautbox. This provider stores outbox messages in-process using a bounded queue. It is ideal for tests, local development, or ephemeral workloads where durability is not required.
Features
- In-process queue with capacity limits
- Visibility timeout and rescheduling
- Optional scheduling via
scheduledAt - Transaction-aware enqueue when
System.Transactionsis used
Installation
NuGet (if published):
dotnet add package Yautbox.InMemory
From source:
dotnet add <your-app>.csproj reference src/Yautbox.InMemory/Yautbox.InMemory.csproj
Quick start
using Microsoft.Extensions.DependencyInjection;
using Yautbox.Extensions.Ioc;
using Yautbox.InMemory.Extensions;
services.AddOutbox(builder => builder.UseInMemory());
You still register handlers in the core package:
using Yautbox.Extensions.Ioc;
services.AddOutboxHandler<OrderPlaced, OrderPlacedHandler>();
Options
InMemoryOutboxOptions:
Capacity(default: 10000 per handler)
Example:
using Yautbox.InMemory.Extensions;
using Yautbox.InMemory.Options;
services.AddOutbox(builder => builder.UseInMemory(new InMemoryOutboxOptions
{
Capacity = 50000
}));
Notes
- Messages are stored only in memory and are lost on process restart.
- Visibility and retry logic is implemented in-memory and should not be used as a durability mechanism in production.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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.
-
net8.0
- DequeNet (>= 1.0.2)
- Microsoft.NETCore.Jit (>= 2.0.8)
- Yautbox (>= 1.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.