Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 /// <remarks/>
 public void PingAsync(PingMethodArgs Ping1)
 {
     this.PingAsync(Ping1, null);
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 /// <remarks/>
 public System.IAsyncResult BeginPing(PingMethodArgs Ping1, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("Ping", new object[] {
             Ping1}, callback, asyncState);
 }