Exemple #1
0
        private void disposeLogger()
        {
            if (_jsonLogger != null)
            {
                _jsonLogger.Dispose();
                _jsonLogger = null;
            }

            if (_directoryMonitor != null)
            {
                _directoryMonitor.Dispose();
                _directoryMonitor = null;
            }
        }
 public void Dispose()
 {
     directoryMonitor.Dispose();
     foreach (var chatChannelAndUi in chatClients.Values)
     {
         chatChannelAndUi.Item1.Dispose();
         chatChannelAndUi.Item2.Dispose();
     }
     serverChannel.Dispose();
 }