Flowly.InMemory
1.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Flowly.InMemory --version 1.1.1
NuGet\Install-Package Flowly.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="Flowly.InMemory" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Flowly.InMemory" Version="1.1.1" />
<PackageReference Include="Flowly.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 Flowly.InMemory --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Flowly.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 Flowly.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=Flowly.InMemory&version=1.1.1
#tool nuget:?package=Flowly.InMemory&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Flowly.InMemory
In-memory transport provider for Flowly. All messaging operations run entirely in-process using .NET channels — no external broker is required.
When to use
- Testing — fast, deterministic handler tests without a running broker
- Local development — get up and running instantly with no Docker or cloud setup
- Lightweight scenarios — single-process apps that don't need distributed messaging
Installation
dotnet add package Flowly.InMemory
Usage
public class MyConfig : FlowlyDesignTimeFactory, IFlowlyConfiguration
{
public void Configure(IFlowlyBuilder builder) =>
builder
.UseInMemory()
.AddMessageHandler<MyMessage, MyHandler>()
.AddMessageSubmitter<MyMessage>();
}
Register in Program.cs:
services.AddFlowly<MyConfig>(configuration);
Options
builder.UseInMemory(configure: opts =>
{
opts.MaxMessageSizeBytes = 2 * 1024 * 1024; // 2 MB
opts.ChannelCapacity = 500; // messages per queue before back-pressure
});
| Option | Default | Description |
|---|---|---|
MaxMessageSizeBytes |
1 048 576 (1 MB) | Maximum serialized message size. Larger messages throw MessageTooLargeException. |
ChannelCapacity |
1000 | Bounded channel capacity per queue. Writers block when full (back-pressure). |
Supported features
| Feature | Supported |
|---|---|
Regular message handlers (MessageHandler<T>) |
✓ |
Batch message handlers (BatchMessageHandler<T>) |
✓ |
Job handlers (JobHandler<T>) |
✓ |
Recurring jobs (RecurringJobHandler) |
✓ |
Event handlers (EventHandlerBase<TEvent>) |
✓ |
Retry policy ([RetryPolicy]) |
✓ |
| Dead-letter tracking | ✓ |
| Scheduled delivery (retry delay) | ✓ (via InMemoryScheduler hosted service) |
| Topology creation | No-op (channels are created lazily) |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Flowly (>= 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.