How to configure WCF to use just one of two available endpoints?
I need two TCP ports (and thus using netTcpBinding
). The service host should first try to bind to the first port. If it fails, and only if it fails, it should try to bind to the second port.
EDIT
I known it can be achived programatically, but my intention to do it declaratively (using .config
files only).