예제 #1
0
파일: QueryMSE.cs 프로젝트: mobilipia/Win7
        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);
            }
        }
예제 #2
0
 /// <remarks/>
 public void PingAsync(PingMethodArgs Ping1)
 {
     this.PingAsync(Ping1, null);
 }
예제 #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);
 }
예제 #4
0
 /// <remarks/>
 public System.IAsyncResult BeginPing(PingMethodArgs Ping1, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("Ping", new object[] {
             Ping1}, callback, asyncState);
 }