Пример #1
0
 private void ProduceChangedSnapshot(DirectorySnapshot snapshot)
 {
     try {
         snapshot.CreateSnapshot();
         var snapshots = snapshot.GetChangedSnapshots(Filters);
         var messages  = snapshots.Select(x => ReadSnapshot(x)).ToArray();
         _changedQueue.Produce(_producerTokenSource.Token, messages);
     } catch (Exception e) {
         OnException?.Invoke(this, e);
     }
 }