Closed sm-g closed 4 years ago
After the changes in #62:
Given the interfaces and classes:
public interface IBaseRequest { }
public interface IRequest<T> : IBaseRequest { }
public class MyQuery : IRequest<string> { }
The following will yield MyQuery:
Types.InCurrentDomain()
.That()
.AreClasses()
.And()
.ImplementInterface(typeof(IBaseRequest))
.GetTypes();
Are you sure about that? ImplementInterface() does not use dependency search, so I would be very surprised if #62 would change anything in this mater. The same goes for #71
It's more accurate to say that I can't replicate this on the current version of the master code branch.
Perhaps the problems are more down to usage and interpretation.
The issue seems to be caused by Mono.Cecil and its handling of interfaces, see https://github.com/jbevain/cecil/issues/625. The example given in that issue also seems to fail on NetArchTest.
i.e. interfaces from https://github.com/jbogard/MediatR/blob/master/src/MediatR/IRequest.cs
and my code:
and failing test: