brunoalbano / MediatR.Extensions.Microsoft.DependencyInjection

MediatR extensions for Microsoft.Extensions.DependencyInjection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MediatR extensions for Microsoft.Extensions.DependencyInjection

Scans assemblies and adds handlers implementations to the container. To use, with an IServiceCollection instance:

services.AddMediatR(typeof(MyHander));

or with an assembly:

services.AddMediatR(typeof(Startup).GetTypeInfo().Assembly);

Supports generic variance of handlers.

About

MediatR extensions for Microsoft.Extensions.DependencyInjection

License:MIT License


Languages

Language:C# 87.0%Language:PowerShell 13.0%