Guest User

Untitled

a guest
Dec 11th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. using System.Collections.Generic;
  2.  
  3. namespace WcfAppServer
  4. {
  5. public class ConfigService
  6. {
  7. public static List<WcfServiceConfig> GetWcfServiceConfigs()
  8. {
  9. return new List<WcfServiceConfig>(2)
  10. {
  11. new WcfServiceConfig()
  12. {
  13. Endpoint = "net.tcp://localhost:8732/WcfServiceLibrary1/Service1",
  14. WcfService = new WcfService("WcfServiceLibrary1", "Service1", "WcfServiceLibrary1", "IService1")
  15. },
  16. new WcfServiceConfig()
  17. {
  18. Endpoint = "net.tcp://localhost:8733/WcfServiceLibrary2/Service1",
  19. WcfService = new WcfService("WcfServiceLibrary2", "Service1", "WcfServiceLibrary2", "IService1")
  20. }
  21. };
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment