示例#1
0
 /// <summary>
 /// Releases unmanaged and - optionally - managed resources
 /// </summary>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
 protected virtual void Dispose(bool disposing)
 {
     Trace.TraceInformation("{0}.Dispose: Disposing={1}", CLASSNAME, disposing);
     Trace.Indent();
     if (disposing)
     {
         if (_recvrComm != null)
         {
             _recvrComm.DataPacketReceived -= RecvrComm_PacketReceivedHandler;
             _recvrComm.Dispose();
             _recvrComm = null;
         }
     }
     Trace.Unindent();
 }