I have instantiated a WCF binding in code:
var binding = new WSHttpBinding();
binding.Secuity.Mode = SecurityMode.Transport;
Is there a way (in code) to get its equivalent configuration? For the above I would expect:
<wsHttpBinding>
<binding name="NewBinding0">
<security mode="Transport" />
</binding>
</wsHttpBinding>
There is obviously a way to get the binding instance from config (every proxy needs that) so I am hoping the other direction is possible as well.