예제 #1
0
 public void Dispose()
 {
     if (!_stopped)
     {
         _stopped = true;
         _service?.RemoveListener(this);
         _tcpListener?.Stop();
         Authenticator = null;
         if (null != _mefContainer)
         {
             if (null != _export)
             {
                 _mefContainer.ReleaseExport(_export);
             }
             _mefContainer.Dispose();
         }
     }
 }