How to create a WCF client without settings in config file?

后端 未结 3 1185
梦谈多话
梦谈多话 2021-01-04 02:54

I just start work on WCF a month ago. Please forgive me if I ask something already answered. I try to search first but found nothing.

I read this article, WCF File T

3条回答
  •  余生分开走
    2021-01-04 03:50

    Are you looking to retain your custom config and reference it within your application? You may try this article: Reading WCF Configuration from a Custom Location (In regards to WCF)

    Otherwise, you can use ConfigurationManager.OpenExeConfiguration.

提交回复
热议问题