/// <summary> /// Get Videoguard web service client /// </summary> private ReceiverServiceResponseClient GetClient() { if (client == null) { EndpointAddress address = new EndpointAddress($"http://{MainWindow.webserviceServer}:{MainWindow.webservicePort}/VGAlarmReceiver/Receiver.svc"); WSHttpBinding binding = new WSHttpBinding(SecurityMode.None, true); client = new ReceiverServiceResponseClient(binding, address); } return(client); }
/// <summary> /// Get informations for the connector /// Start to send periodically heartbeat and recorder info to the Videoguard web service /// </summary> private void StartConnector() { MainWindow.cayugaVersion = this.GetVersion(); MainWindow.macAddress = this.GetMac(); MainWindow.client = this.GetClient(); this.StartSendHeart(); this.StartSendRecordInfoRequest(); }