Closed FDUdannychen closed 6 years ago
@FDUdannychen this might be due to it being a generic? I know with structuremap you have to explicitly call .ConnectImplementationsToTypesClosing()
Open generics are treated differently in the ASP.NET Core container. Behaviors might not have any explicitly defined closed types, so T
is not known until runtime.
Line 30 in the example of ASP.NET CORE
IMO
GenericPipelineBehavior<,>
is registered by Scrutor's scan:Unfortunately it isn't, which means line 30 is necessary. Why?