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

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -