Disconnect() public method

public Disconnect ( bool immediate ) : void
immediate bool
return 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
ファイル: Simulator.cs プロジェクト: xjc90s/libopenmetaverse
 /// <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);
     }
 }