StructureMap with my own attributes in C#

Posted by ridecar2 on Stack Overflow See other posts from Stack Overflow or by ridecar2
Published on 2010-04-04T23:19:30Z Indexed on 2010/04/04 23:23 UTC
Read the original article Hit count: 314

Hi All,

I have an attribute that I have written that has a dependency on the Data Access Layer so I made a constructor that took the DAL class as a parameter (marked with [DefaultConstructor] and another, blank, constructor that is parameterless. When I call a method that depends on the attribute how do I make StructureMap inject the correct type?

Thanks

Gareth

© Stack Overflow or respective owner

Related posts about c#

Related posts about structuremap