Skip to content

pauleds/MediatR.LightInject

Repository files navigation

MediatR.LightInject

Provides MediatR extensions for the LightInject IoC Container. Compatible with Umbraco 8 CMS.

It's basically a simple LightInject port of MediatR extensions for Microsoft.Extensions.DependencyInjection.

⭐ Please give this project a star if you like or are using it. Thanks!

Usage

	// LightInject
	var container = new LightInject.ServiceContainer();

	// Umbraco 8
	var container = composition.Concrete as LightInject.ServiceContainer;

	...

	container.AddMediatR(typeof(MyHandler));

    // OR
	
	container.AddMediatR(typeof(Startup).GetTypeInfo().Assembly);

References

About

An extension for LightInject IoC to use MediatR and CQRS with ease.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages