title: How do I make use of the NetTcpRelaySecurity element in an app.config file?
body: <p>I am attempting to use the Azure service bus relay to expose a WCF service to users outside of the company network.</p>
  
  <p>I have succeeded to some extent, but in order to prove that the communication works I have had to remove all of the custom username and password authentication implemented on the WCF service.</p>
  
  <p>I have been googling and reading around the topic for a while and believe that the NetTcpRelaySecurity mode is where I need to make changes - from transport to TransportWithMessageCredential (because this is what the client and service use within the network)</p>
  
  <p>So, how do I change this setting in the configuration file? I cannot find any examples so far. </p>
  
  <p>Also, am I going about this the right way? Can I pass through username and password client credentials from an external client application to a WCF service through the service bus?</p>