Simplified.

Libraries for building modern, maintainable .NET applications leveraging the Vertical Slice Architecture and Mediator pattern with .
Extensible. Fast. Source Generated. Open Source.

Easy to integrate into any app

Thanks to their modular nature, ImmediatePlatform libraries can be easily integrated into most types of .NET applications.

[Handler]
[MapGet("/api/todos/{id}")]
public static partial class GetTodo
{
    [Validate]
    public sealed partial record Query : IValidationTarget<Query>
    {
        [FromRoute]
        [GreaterThan(0)]
        public required int Id { get; init; }
    }

    private static async ValueTask<Todo> HandleAsync(
        Query query,
        ExampleDbContext dbContext,
        CancellationToken ct
    ) => await dbContext.Todos
            .Where(t => t.Id == query.Id)
            .Select(t => t.ToDto())
            .FirstOrDefaultAsync();
}
Like what you see? See our full cookbook.
Blazingly fast

ImmediatePlatform heavily leverages source generation and is extremely fast. Enjoy all the benefits of modern, industry-standard patterns, with none of the performance drawbacks that come with classic reflection-based solutions.

Benchmark using 1 behavior and 1 service.

See full benchmark suite.
Compile-time safe

No reflection magic, no runtime surprises. ImmediatePlatform libraries strive to always warn you about issues ahead of time, during compilation.

Screenshot of Immediate.Handlers Roslyn analyzer showing a warning about a missing concrete handler implementation.

Copyright © 2024 ImmediatePlatform