c# - How to config unity to use setter injection only in my customeactionfilterattributes? -
in structuremap possible config when using setter injection actionfilterattribute injects , search setter in customeactionfillterattribute :
setallproperties(x => x.matching(p => p.declaringtype.canbecastto(typeof(actionfilterattribute)) && p.declaringtype.namespace.startswith("myassemblyname") && !p.propertytype.isprimitive && p.propertytype != typeof(string)));
how in unity?
is setting [dependency] attribute enough?
Comments
Post a Comment