mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-28 21:01:39 +03:00
refactor LocationService
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user