/[projects]/dao/DaoMqPump2/DaoMqPump2/PumpService.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/DaoMqPump2/PumpService.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2005 by torben, Mon Jul 8 14:33:50 2013 UTC revision 2006 by torben, Tue Jul 9 18:11:34 2013 UTC
# Line 93  namespace DaoMqPump2 Line 93  namespace DaoMqPump2
93          }          }
94    
95    
96          void startRemoteControl()          public void startRemoteControl()
97          {          {
98              // Step 1 Create a URI to serve as the base address.              // Step 1 Create a URI to serve as the base address.
99              Uri baseAddress = new Uri("http://localhost:8000/RemoteControl/");              string hostName = System.Net.Dns.GetHostName();
100                Uri baseAddress = new Uri("http://" + hostName + ":8000/RemoteControl/");
101                
102    
103              // Step 2 Create a ServiceHost instance              // Step 2 Create a ServiceHost instance
104              selfHost = new ServiceHost(typeof(RemoteControl), baseAddress);              selfHost = new ServiceHost(typeof(RemoteControl), baseAddress);

Legend:
Removed from v.2005  
changed lines
  Added in v.2006

  ViewVC Help
Powered by ViewVC 1.1.20