protected override void Dispose(bool disposing)
{
if(disposing)
{
// get rid of unmanaged stuff
}
lock(monitor)
{
this.localWireFormatInfo = null;
this.remoteWireFormatInfo = null;
this.disposing = true;
StopMonitorThreads();
}
base.Dispose(disposing);
}