WCF ChannelFactory configuration outside of App.config?

后端 未结 3 1826
故里飘歌
故里飘歌 2021-02-06 08:03

I\'ve got a Windows Service that makes use of a plugin system. I\'m using the following code in the plugin base class to provide a separate configuration per DLL (so it\'ll rea

3条回答
  •  轮回少年
    2021-02-06 08:31

    Here's a solution I found to my 2nd question... someone put the work in to read all the data from ServiceModelSectionGroup and create a ChannelFactory.

    http://weblogs.asp.net/cibrax/archive/2007/10/19/loading-the-wcf-configuration-from-different-files-on-the-client-side.aspx

    I'll be using Richard's solution though, as it seems much cleaner.

提交回复
热议问题