Libraries for building modern, maintainable .NET applications leveraging the Vertical Slice
Architecture and Mediator pattern with .
Extensible. Fast. Source Generated. Open Source.
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();
}
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.No reflection magic, no runtime surprises. ImmediatePlatform libraries strive to always warn you about issues ahead of time, during compilation.