Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Add filter to skip registration of open generics with mismatched arity #109

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

markmillercc
Copy link
Contributor

This PR addresses a recent change to the dotnet runtime, which now throws an exception upon the attempted registration of open generic types with a mismatched arity between service and implementation: dotnet/runtime#51167

Since dotnet will now explicitly disallow the registration of these types, MediatR should not attempt to register them.

I created this repo, https://github.com/markmillercc/MediatRClub, to provide more detail and to demonstrate how I've used these types of services successfully, and how to reproduce the error that occurs when upgrading the Microsoft packages.

Note: this problem can also be resolved via this open PR, which would allow for the exclusion of specified types: #107

Related: jbogard/MediatR#674

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants