jbogard / MediatR

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

DryIoc sample throws runtime exception #882

Closed hymccord closed 1 year ago

hymccord commented 1 year ago

Running the DryIoc samples results in the following

System.InvalidOperationException: 'No service for type 'MediatR.IMediator' has been registered.'

The addition of the second constructor in https://github.com/jbogard/MediatR/commit/838a8e12b62ee95f2f1caa503d282a8d9bce6047 breaks the default DryIoc container. It doesn't resolve classes with multiple ctors by default.

I have submitted a PR to fix this.

hymccord commented 1 year ago

See #881