refactor LocationService

This commit is contained in:
2011-04-04 18:22:03 +03:00
parent 2de2c2485e
commit f79ee0adc2
16 changed files with 236 additions and 78 deletions
@@ -43,7 +43,7 @@ namespace GpsEmulator
try
{
// setup the GPS host service
host = new ServiceHost(this, new Uri("http://localhost:8192/"));
host = new ServiceHost(this, new Uri("http://localhost:9192/"));
host.AddServiceEndpoint(typeof(IGpsEmulatorService), new BasicHttpBinding(BasicHttpSecurityMode.None), "GpsEmulator");
host.Open();
}
@@ -167,7 +167,7 @@ namespace GpsEmulatorClient
status = GeoPositionStatus.Initializing;
client = new GpsEmulatorServiceClient(
new BasicHttpBinding(BasicHttpSecurityMode.None),
new EndpointAddress("http://localhost:8192/GpsEmulator")); // change end point to real IP when testing on a real device
new EndpointAddress("http://localhost:9192/GpsEmulator")); // change end point to real IP when testing on a real device
client.OpenCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_OpenCompleted);
client.GetCurrentPositionCompleted +=new EventHandler<GetCurrentPositionCompletedEventArgs>(client_GetCurrentPositionCompleted);
ICommunicationObject commObject = client as ICommunicationObject;