question

AndrewRamshaw-4058 avatar image
0 Votes"
AndrewRamshaw-4058 asked AndrewRamshaw-4058 commented

Regarding WCF Services And ConfigSource Attribute

I was wondering if there was ever going to be a formal inclusion of configsource as an attribute for WCF Service related web/app configs. The reason being for an enterprise like the one I work for having a variety of services and applications which we want to have assignable and modifiable from a single location instead of the distribution of them across all the installed applications. The configsource attribute is available for a variety of other elements in the config (such as http parameters/requests) and since this is somewhat of a related thing I would think that it'd be helpful and a logical step to consolidate client endpoint management, service availability, and the like.

Thanks for your time.

windows-wcf
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PengDing-MSFT avatar image
0 Votes"
PengDing-MSFT answered AndrewRamshaw-4058 commented

Hi @AndrewRamshaw-4058 , For WCF, unfortunately the configSource attribute does not work on the <system.serviceModel> section group, but you can still apply it on the child config sections. For more information about it, you can refer to this link:

https://weblogs.asp.net/cibrax/configsource-attribute-on-system-servicemodel-section





If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Best regards,
Peng Ding


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What about adding the elements to the machine.config file? Would that encompass both web and desktop applications?

0 Votes 0 ·