previously I had :
public class PresentationModelConventionScanner : ITypeScanner
{
public void Process(Type type, PluginGraph graph)
{
Type interfaceType = type.FindInterfaceThatCloses(typeof(IPresentationModel<>));
if (interfaceType != null)
{
graph.AddType(interfaceType, type);
}
}
but 2.5.4 does not support FindInterfaceThatCloses anymore …
it seems you have to implement IRegistrationConvention instead of ITypeScanner, so the Process method syntax has to change too…
Could not find any example yet…
I still see the FindInterfaceThatCloses type extension method in the StructureMap source (in AssemblyScannerExtension.cs).
You can replace the behavior you require with the new ConnectImplementationsToTypesClosing method.