Scry.Server.MassTransit
0.6.0
dotnet add package Scry.Server.MassTransit --version 0.6.0
NuGet\Install-Package Scry.Server.MassTransit -Version 0.6.0
<PackageReference Include="Scry.Server.MassTransit" Version="0.6.0" />
<PackageVersion Include="Scry.Server.MassTransit" Version="0.6.0" />
<PackageReference Include="Scry.Server.MassTransit" />
paket add Scry.Server.MassTransit --version 0.6.0
#r "nuget: Scry.Server.MassTransit, 0.6.0"
#:package Scry.Server.MassTransit@0.6.0
#addin nuget:?package=Scry.Server.MassTransit&version=0.6.0
#tool nuget:?package=Scry.Server.MassTransit&version=0.6.0
Scry.Server.MassTransit
Dispatches Scry commands through MassTransit. A command from a client is published to the consumer that handles it, and the outcome comes back to the client when the consumer finishes.
On the Scry server:
builder.Services.AddScry<SampleContext>(
_ =>
{
_.MaxPendingCommands = 100;
_.UseMassTransitCommands(_ => _.For<RepriceOrder>());
});
builder.Services.AddMassTransit(
_ =>
{
_.AddScryCommandCompletions();
_.UsingRabbitMq((context, bus) => bus.ConfigureEndpoints(context));
});
On the worker:
builder.Services.AddMassTransit(
_ =>
{
_.AddConsumer<RepriceOrderConsumer>();
_.UsingRabbitMq(
(context, bus) =>
{
bus.UseScryCommands(context);
bus.UseMessageRetry(_ => _.Immediate(3));
bus.ConfigureEndpoints(context);
});
});
The server validates, authorizes and binds the command as it would for an in-process handler, then publishes it with the command's id and caller as headers. The consumer is an ordinary IConsumer<T>. When it finishes, the worker publishes the outcome. On success the outcome is published through the consume context, so with an outbox it is sent only if the consumer's work was kept. A failure is reported by the fault MassTransit publishes once it gives up on the message: after UseMessageRetry and any redelivery, or immediately if there are none. So a retry that recovers from a failed attempt still completes the command. The server's AddScryCommandCompletions consumes those faults. If a worker turns fault publishing off, a failed command is left to the server's CommandRetention. A consumer of a command that has a result returns it with context.SetScryResult(result).
It claims no command until told to, since a MassTransit message can be any class. Every command it does not claim stays with its in-process handler. Each node consumes completions on a temporary endpoint of its own, so the node that dispatched a command learns how it ended.
This package has no change backplane. A consumer's writes reach live queries in one of three ways: the notification the server raises when a targeted command completes, a change probe, or the poll.
Docs: Commands
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- MassTransit (>= 9.3.0)
- Microsoft.EntityFrameworkCore (>= 11.0.0)
- Scry.Server (>= 0.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.6.0 | 0 | 12/4/2026 |
| 0.5.0 | 50 | 12/3/2026 |
| 0.4.0 | 97 | 11/20/2026 |
| 0.3.0 | 86 | 11/16/2026 |
| 0.2.0 | 99 | 11/7/2026 |
| 0.1.0 | 95 | 11/3/2026 |
| 0.1.0-beta.15 | 66 | 10/28/2026 |
| 0.1.0-beta.14 | 98 | 10/21/2026 |
| 0.1.0-beta.13 | 63 | 10/7/2026 |
| 0.1.0-beta.12 | 70 | 10/1/2026 |
| 0.1.0-beta.11 | 63 | 9/30/2026 |
| 0.1.0-beta.10 | 80 | 9/24/2026 |