Disconnect() 공개 메소드

public Disconnect ( bool immediate ) : void
immediate bool
리턴 void
예제 #1
0
        public virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (AckTimer != null)
                {
                    AckTimer.Dispose();
                }
                if (PingTimer != null)
                {
                    PingTimer.Dispose();
                }
                if (StatsTimer != null)
                {
                    StatsTimer.Dispose();
                }
                if (ConnectedEvent != null)
                {
                    ConnectedEvent.Close();
                }

                // Force all the CAPS connections closed for this simulator
                if (Caps != null)
                {
                    Caps.Disconnect(true);
                }
            }
        }
예제 #2
0
 /// <summary>
 /// Called when this Simulator object is being destroyed
 /// </summary>
 public void Dispose()
 {
     // Force all the CAPS connections closed for this simulator
     if (Caps != null)
     {
         Caps.Disconnect(true);
     }
 }