public void ping() { ServicePointManager.ServerCertificateValidationCallback += new System.Net.Security.RemoteCertificateValidationCallback(ValidateServerCertificate); LocationService LS = new LocationService("https://" + mseAddr + "/location/"); try { PingMethodArgs PMA = new PingMethodArgs(); PMA.AesBusinessSession = new location.AesBusinessSession(); PMA.AesBusinessSession.id = sessionId; AesPing AP = new AesPing(); PMA.AesPing = AP; location.Response r = LS.Ping(PMA); } catch (Exception x) { Trace.WriteLine(x); } }
/// <remarks/> public void PingAsync(PingMethodArgs Ping1) { this.PingAsync(Ping1, null); }
/// <remarks/> public void PingAsync(PingMethodArgs Ping1, object userState) { if ((this.PingOperationCompleted == null)) { this.PingOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPingOperationCompleted); } this.InvokeAsync("Ping", new object[] { Ping1}, this.PingOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginPing(PingMethodArgs Ping1, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Ping", new object[] { Ping1}, callback, asyncState); }