/// Liste für Gebäude initialisieren und bereitstellen #region Buildings public void InitializeBuildings() { if (this.client == null) this.client = new WP_InterfaceClient(new System.ServiceModel.BasicHttpBinding(), new EndpointAddress("http://localhost:8080/BOSE_Service")); this.client.ProcessRequestCompleted += new EventHandler<ProcessRequestCompletedEventArgs>(client_BuildingsCompleted); this.client.ProcessRequestAsync("getBuildings"); }
public void Authenticate(string userData) { if (client == null) client = new WP_InterfaceClient(new System.ServiceModel.BasicHttpBinding(), new EndpointAddress("http://localhost:8080/BOSE_Service")); client.authenticateCompleted += new EventHandler<authenticateCompletedEventArgs>(client_authenticateCompleted); client.authenticateAsync(userData); }
/// Hier wird der Aufruf an den Server gesendet #region Calls public void Call(string operation) { if (client == null) client = new WP_InterfaceClient(new System.ServiceModel.BasicHttpBinding(), new EndpointAddress("http://localhost:8080/BOSE_Service")); client.ProcessRequestCompleted += new EventHandler<ProcessRequestCompletedEventArgs>(client_ProcessRequestCompleted); client.ProcessRequestAsync(operation); }