Minimalist WCF Client-side Config File


/ Published in: C#
Save to your folder(s)

Again, A-B-C. All the Behaviour garbage that "Add Service Reference" inserts for the TCP binding is unnecessary, especially if the Operation Contract is only for simple value types.


Copy this code and paste it in your HTML
  1. <system.serviceModel>
  2. <client>
  3. <endpoint name="Name_Not_Significant"
  4. address="net.tcp://localhost:8001/"
  5. binding="netTcpBinding"
  6. contract="DoStuffServer.IDoStuff">
  7. </endpoint>
  8. </client>
  9. </system.serviceModel>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.