jbogard / MediatR

Simple, unambitious mediator implementation in .NET
Apache License 2.0
11k stars 1.16k forks source link

Fix runtime exception in DryIoc sample #881

Closed hymccord closed 1 year ago

hymccord commented 1 year ago

The addition of the second constructor in the Mediator class (for publishing strategies) breaks the default rules for DryIoc.

This commit will fix that by explicity picking the constructor to use in the container. It also adds comments for an alternative solution to automatically resolve classes that have multiple constructors.

Closes: #882