c# - Forcing WCF to ignore config file, or sections of config file -
i understand how configure wcf programatically, i'm wondering if there's way force wcf service ignore configuration file and/or ignore parts of configuration file.
i'd able restrict service using settings, such ensuring use specific binding configuration whilst leaving binding settings such address configurable. means have 2 options can 1) restrict specific settings required if possible, or 2) disable loading of config file altogether , use own custom config file supports settings need , use these basis on setup bindings programatically based on these values.
i understand self-hosted service can @ least iterate binding settings , forth , disable/remove/modify not interested in after have been loaded believe trivial self-hosted services set servicehost manually , i'm wondering if it's way restrict configuration believe having made service there nothing stop taking service library , using different host (such iis) load own custom configuration.
i understand whole point of wcf it's highly configurable , flexible , goes against fundamental design goal of agree it's not ideal scenario isn't requirement have had input on suggestions how may possible limit configuration options discussed above appreciated.
Comments
Post a Comment