protected override void Dispose(bool disposing) {
#if DEBUG
using (GlobalLog.SetThreadKind(ThreadKinds.User | ThreadKinds.Sync)) {
#endif
try {
GlobalLog.Print("ConnectStream#" + ValidationHelper.HashString(this) + "::Close()");
if(Logging.On)Logging.Enter(Logging.Web, this, "Close", "");
((ICloseEx)this).CloseEx(CloseExState.Normal);
if(Logging.On)Logging.Exit(Logging.Web, this, "Close", "");
}
finally {
base.Dispose(disposing);
}
#if DEBUG
}
#endif
}