Register Memoria in the service collection (Memoria package):
services.AddMemoria(typeof(CreateProduct), typeof(GetProduct));
All command, query, and notification handlers are registered automatically. Pass one type per assembly that contains handlers — CreateProduct is a sample command and GetProduct is a sample query, here assumed to live in two different assemblies.
The core mediator works on its own. Plug in any of the following when you need them: