Skip to main content
Open Source .NET Infrastructure

Build Enterprise Applications
Without Reinventing the Wheel

RCommon provides battle-tested abstractions for persistence, CQRS, event handling, messaging, caching, and more — so you can focus on your domain, not your plumbing.

dotnet add package RCommon.Core
37+
NuGet Packages
3
Target Frameworks
20+
Working Examples
Apache 2.0
License

Simple, Fluent Configuration

Configure everything through a single fluent builder in Program.cs

builder
    .AddRCommon()
    .WithPersistence<EfCorePeristenceBuilder>(ef =>
        ef.AddDbContext<AppDbContext>(...))
    .WithMediator<MediatRBuilder>(mediator =>
        mediator.AddRequest<CreateOrderCommand>())
    .WithEventHandling<MassTransitBuilder>(events =>
        events.AddProducer<OrderCreatedEvent>())
    .WithCaching<MemoryCacheBuilder>()
    .WithValidation<FluentValidationBuilder>();