Exemplo n.º 1
0
        protected virtual void OnSnapshotComputed(SnapshotComputedEventArgs e)
        {
            EventHandler <SnapshotComputedEventArgs> handler = SnapshotComputed;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        private void FileSystemProcessorOnSnapshotComputed(object sender, SnapshotComputedEventArgs e)
        {
            var fileSystemTreeComputed = new FileSystemTreeComputed {
            OperationId = e.OperationId,
            Error = ErrorResponseHelper.CreateErrorResponse(e.Error)
              };

              if (e.PreviousSnapshot != null) {
            fileSystemTreeComputed.OldVersion = e.PreviousSnapshot.Version;
            fileSystemTreeComputed.NewVersion = e.NewSnapshot.Version;
              }

              _typedEventSender.SendEventAsync(fileSystemTreeComputed);
        }
 protected virtual void OnSnapshotComputed(SnapshotComputedEventArgs e)
 {
     EventHandler<SnapshotComputedEventArgs> handler = SnapshotComputed;
       if (handler != null) handler(this, e);
 }