internal PersistentStoreWrapper( IPersistentDataStoreAsync coreAsync, DataStoreCacheConfig caching, IDataStoreUpdates dataStoreUpdates, TaskExecutor taskExecutor, Logger log ) : this(new PersistentStoreAsyncAdapter(coreAsync), caching, dataStoreUpdates, taskExecutor, log) { }
private static async Task <FullDataSet <SerializedItemDescriptor> > GetAllData(IPersistentDataStoreAsync store) { var colls = new List <KeyValuePair <DataKind, KeyedItems <SerializedItemDescriptor> > >(); foreach (var kind in new DataKind[] { DataModel.Features, DataModel.Segments }) { colls.Add(new KeyValuePair <DataKind, KeyedItems <SerializedItemDescriptor> >( kind, await store.GetAllAsync(kind))); } return(new FullDataSet <SerializedItemDescriptor>(colls)); }
internal PersistentStoreAsyncAdapter(IPersistentDataStoreAsync coreAsync) { _coreAsync = coreAsync; }