c# - StructureMap(或任何 IoC)和 WCF

标签 c# wcf structuremap

在 WCF 服务中,在哪里引导 StrucureMap?此刻完全迷失在这里....

最佳答案

这个 dimecast 应该给你你需要知道的一切 http://www.dimecasts.net/Casts/CastDetails/150

来自博客条目:

When building out a set of services in WCF you still would like to follow the SOLID principles and in order to do this you may want to setup the ability to inject dependencies (via Structure Map) into your services at run time. With WCF extension points this is not only possible, but pretty easy

关于c# - StructureMap(或任何 IoC)和 WCF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1725659/

相关文章:

c# - Task.Delay 会导致线程切换吗?

c# - 是否可以在不添加服务引用的情况下访问 WCF 服务?

c# - 结构图 - 覆盖注册

c# - "data.Length==0"或 "data==string.Empty"哪个更有效?

c# - If 语句不工作 C#

wcf - 自定义 SOAP 错误具有错误的命名空间 http ://schemas. datacontract.org/2004/07/

c# - 无法连接到远程 WCF 服务 - TimeoutException

类库/dll 中的结构图 Bootstrap

asp.net-mvc - 当 ASP.NET 5 (vNext) 无法重定向绑定(bind)时我该怎么办?

c# - 如何配置 Azure AD 访问 token 的过期时间(使用 ADAL)?