public Dictionary <string, long> GetLastProcessedTombstonesPerCollection(ITombstoneAware.TombstoneType tombstoneType) { return(new Dictionary <string, long> { ["DailyInvoices"] = 0 }); }
public Dictionary <string, long> GetLastProcessedTombstonesPerCollection(ITombstoneAware.TombstoneType tombstoneType) { return(new Dictionary <string, long> { ["Products"] = 0, ["Users"] = 0 }); }
public override Dictionary <string, long> GetLastProcessedTombstonesPerCollection(ITombstoneAware.TombstoneType tombstoneType) { if (tombstoneType != ITombstoneAware.TombstoneType.Documents) { return(null); } using (CurrentlyInUse()) { return(StaticIndexHelper.GetLastProcessedDocumentTombstonesPerCollection( this, _referencedCollections, Collections, _compiled.ReferencedCollections, _indexStorage)); } }
static State GetState(Dictionary <string, StateHolder> results, string collection, ITombstoneAware.TombstoneType type) { if (results.TryGetValue(collection, out var value) == false) { results[collection] = value = new StateHolder(); } switch (type) { case ITombstoneAware.TombstoneType.Documents: return(value.Documents); case ITombstoneAware.TombstoneType.TimeSeries: return(value.TimeSeries); case ITombstoneAware.TombstoneType.Counters: return(value.Counters); default: throw new NotSupportedException($"Tombstone type '{type}' is not supported."); } }