Mosaic 1.0.0-rc.2
dotnet add package Mosaic --version 1.0.0-rc.2
NuGet\Install-Package Mosaic -Version 1.0.0-rc.2
<PackageReference Include="Mosaic" Version="1.0.0-rc.2" />
<PackageVersion Include="Mosaic" Version="1.0.0-rc.2" />
<PackageReference Include="Mosaic" />
paket add Mosaic --version 1.0.0-rc.2
#r "nuget: Mosaic, 1.0.0-rc.2"
#:package Mosaic@1.0.0-rc.2
#addin nuget:?package=Mosaic&version=1.0.0-rc.2&prerelease
#tool nuget:?package=Mosaic&version=1.0.0-rc.2&prerelease
Mosaic
The meta package — pulls in Mosaic.Abstractions, Mosaic.Runtime, and the source generator (configured as a build-time analyzer). Reference this in your composition root unless you need finer control over the dependencies.
var services = new ServiceCollection();
services.AddMosaic(); // generated extension; discovers every handler in the compilation
var sp = services.BuildServiceProvider();
var engine = sp.GetRequiredService<ICompositionEngine>();
var greeting = await engine.Send(new GetGreeting("world"));
Mosaic is a typed, source-generated mediator + view-model composition framework for .NET. Each handler contributes a tile; the framework assembles the picture.
- Send —
IRequest<TResponse>to oneIRequestHandler<,>. - Compose —
IComposable<TViewModel>to everyIComposer<,>registered for that VM, in parallel. - Publish —
IEventto manyIEventHandler<>implementations.
The dispatcher is source-generated in your composition root — no reflection at startup, no virtual calls on the hot path, AOT/trim-friendly. Handler discovery scans the consumer's compilation plus every transitively-referenced assembly that depends on Mosaic.Abstractions.
Cross-cutting features (atomic outbox, sagas, scheduled messages, cross-process transport, audit pipeline, recoverability policy, critical-error handler, AOT-friendly JSON) are opt-in via additional packages — see https://github.com/pikedev/mosaic for the full layout, design notes, and runnable samples.
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Mosaic.Abstractions (>= 1.0.0-rc.2)
- Mosaic.Runtime (>= 1.0.0-rc.2)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Mosaic.Abstractions (>= 1.0.0-rc.2)
- Mosaic.Runtime (>= 1.0.0-rc.2)
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 |
|---|---|---|
| 1.0.0-rc.2 | 79 | 5/8/2026 |
| 1.0.0-rc.1 | 68 | 5/8/2026 |