If app.config for a DLL should be in the “main config”… what do we do with WCF References in DLLs?

后端 未结 3 1949
暖寄归人
暖寄归人 2020-12-29 09:59

Ok, this is rather simple, but from what I\'ve seen… you can only use some sort of Windows Workflow to include another config into another (which I refuse to do).

He

3条回答
  •  旧时难觅i
    2020-12-29 10:26

    No you're right.

    But surely your WCF services are not in the business layer project, but instead in a separate project which acts as a facade into the business layer. Your business layer is then just another assembly as it should be and doesn't care how it's accessed, the WCF project does that for it.

    Or of course you write custom service hosts and put the minimal amount of information in the config file (host name, certificate thumbprint) and do the rest in code.

提交回复
热议问题