public static async Task <IEnumerable <TOutput> > RetreiveAllObjectFromStringStoreAsync <TOutput, TKey>( this IPersistentStore <TKey, string> store, CancellationToken token) { var inMemoryState = await store.GetAllValuesAsync(token).ConfigureAwait(false); return(inMemoryState.Select(one => InsightsUtil.DeSerialize <TOutput>(one.Value)).ToList()); }