WCF offers the ABC (address, binding, contract) to development and operations but what about the client? I’ve created a POC to let the client change the Address and Binding used for hosting a service. Source at the end of this post.
The idea is to self-host a management service and start a task for hosting other services on demand. When the ChangeSetup operation is called on the management service the task is stopped and a new task is started for the new Address and Binding setup. The Contract stays the same.
Problems are
- the solution is not fit for multi-user,
- incorrect parameters crash the service,
- security?
Remember this is a Proof Of Concept and not meant for production. Use at your own risk!