public override AbstractTableEntriesSnapshot <DiagnosticTableItem> CreateSnapshot(
                AbstractTableEntriesSource <DiagnosticTableItem> source,
                int version,
                ImmutableArray <DiagnosticTableItem> items,
                ImmutableArray <ITrackingPoint> trackingPoints
                )
            {
                var diagnosticSource = (DiagnosticTableEntriesSource)source;
                var snapshot         = new TableEntriesSnapshot(
                    diagnosticSource,
                    version,
                    items,
                    trackingPoints
                    );

                if (diagnosticSource.SupportSpanTracking && !trackingPoints.IsDefaultOrEmpty)
                {
                    // track the open document so that we can throw away tracking points on document close properly
                    _tracker.TrackOpenDocument(
                        diagnosticSource.TrackingDocumentId,
                        diagnosticSource.Key,
                        snapshot
                        );
                }

                return(snapshot);
            }
Пример #2
0
 private void EnsureSources()
 {
     if (_sources == null)
     {
         _sources = new Dictionary <object, AbstractTableEntriesSource <TData> >();
         _sources.Add(_primary.Key, _primary);
         _primary = null;
     }
 }
Пример #3
0
 private void EnsureSources()
 {
     if (_sources == null)
     {
         _sources = new Dictionary <object, AbstractTableEntriesSource <TItem> >
         {
             { _primary.Key, _primary }
         };
         _primary = null;
     }
 }
 public override AbstractTableEntriesSnapshot <DiagnosticTableItem> CreateSnapshot(
     AbstractTableEntriesSource <DiagnosticTableItem> source,
     int version,
     ImmutableArray <DiagnosticTableItem> items,
     ImmutableArray <ITrackingPoint> trackingPoints
     )
 {
     // Build doesn't support tracking point.
     return(new TableEntriesSnapshot(
                (DiagnosticTableEntriesSource)source,
                version,
                items
                ));
 }
Пример #5
0
 public TableEntriesSnapshot(
     AbstractTableEntriesSource <TodoItem> source, int version, ImmutableArray <TableItem <TodoItem> > items, ImmutableArray <ITrackingPoint> trackingPoints) :
     base(version, items, trackingPoints)
 {
     _source = source;
 }
Пример #6
0
 public override AbstractTableEntriesSnapshot <TodoItem> CreateSnapshot(AbstractTableEntriesSource <TodoItem> source, int version, ImmutableArray <TableItem <TodoItem> > items, ImmutableArray <ITrackingPoint> trackingPoints)
 {
     return(new TableEntriesSnapshot(source, version, items, trackingPoints));
 }
 public override AbstractTableEntriesSnapshot <TodoTableItem> CreateSnapshot(AbstractTableEntriesSource <TodoTableItem> source, int version, ImmutableArray <TodoTableItem> items, ImmutableArray <ITrackingPoint> trackingPoints)
 => new TableEntriesSnapshot(version, items, trackingPoints);
Пример #8
0
 public abstract AbstractTableEntriesSnapshot <TData> CreateSnapshot(AbstractTableEntriesSource <TData> source, int version, ImmutableArray <TableItem <TData> > items, ImmutableArray <ITrackingPoint> trackingPoints);
Пример #9
0
 public TableEntriesFactory(AbstractTableDataSource <TItem> tableSource, AbstractTableEntriesSource <TItem> entriesSource)
 {
     _tableSource    = tableSource;
     _entriesSources = new AggregatedEntriesSource(_tableSource, entriesSource);
 }
Пример #10
0
 public EntriesSourceCollections(AbstractTableEntriesSource <TItem> primary)
 {
     Contract.ThrowIfNull(primary);
     _primary = primary;
 }
Пример #11
0
 public AggregatedEntriesSource(AbstractTableDataSource <TItem> tableSource, AbstractTableEntriesSource <TItem> primary)
 {
     _tableSource = tableSource;
     _sources     = new EntriesSourceCollections(primary);
 }
Пример #12
0
 public EntriesSourceCollections(AbstractTableEntriesSource <TData> primary)
 {
     _primary = primary;
 }