c# - SOA issue: WCF + dependency injection -
we have following solution layout:
- dataaccess
- business logic
- wcf services
- mvc
we chose have wcf service layer, because in future there other applications using same logic. that's considered soa.
between da, bl , wcf layer tend use dependency injection, because i'd unit test business logic etc..
but question is: should use dependency injection wcf well? mean is, should pass dependencies through wcf services application (consumer)? find weird, because no longer seems soa me?
can me out?
should pass dependencies through wcf services application?
i guess application mean consumer of wcf service right? believe application(mvc) talking service layer through proxies. should not inject dependencies wcf service consumer application , can't that.
but can use dependency injection in wcf inject data/logging components better unit testing in service side creating custom service host factory.
http://prideparrot.com/blog/archive/2012/2/dependency_injection_in_wcf_using_castle_windsor
Comments
Post a Comment