Disconnect() public method

public Disconnect ( bool immediate ) : void
immediate bool
return void
Beispiel #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);
                }
            }
        }
Beispiel #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);
     }
 }