Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 27th, 2012  |  syntax: XML  |  size: 0.98 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. With base address
  2.  
  3. <service name="WCFService.Service" behaviorConfiguration="behaviorConfig">
  4. <host>
  5.   <baseAddresses>
  6.     <add baseAddress="net.tcp://localhost:1645/ChatServer/"/>
  7.   </baseAddresses>
  8.   </host>
  9.  <endpoint address="tcp"
  10.                  binding="netTcpBinding"
  11.                  bindingConfiguration="tcpBinding"
  12.                  contract="ChatService.IChat"/>
  13.  
  14.  <endpoint address="mex"
  15.                  binding="mexTcpBinding"
  16.                  contract="IMetadataExchange"/>
  17.  
  18.  </service>
  19.  
  20. Without base address
  21.  
  22. <service name="WCFService.Service" behaviorConfiguration="behaviorConfig">
  23.  <endpoint address="net.tcp://localhost:1645/ChatServer/tcp"
  24.                  binding="netTcpBinding"
  25.                  bindingConfiguration="tcpBinding"
  26.                  contract="ChatService.IChat"/>
  27.  
  28.  <endpoint address="net.tcp://localhost:1645/ChatServer/mex"
  29.                  binding="mexTcpBinding"
  30.                  contract="IMetadataExchange"/>
  31.  
  32.  </service>