Esempio n. 1
0
        public async Task CreateStoreForContextIdAsync(Guid contextId)
        {
            EnsureCacheIsPopulated();
            await _stagingStoreContainer.CreateStoreForContextIdAsync(contextId).ConfigureAwait(false);

            _cachedStores.Add(contextId, new CachingStagingStore(await _stagingStoreContainer.GetStoreForContextIdAsync(contextId).ConfigureAwait(false)));
        }
Esempio n. 2
0
        public static async Task <CaPMIngestEventStore> CreateCaPMEventStore(IStagingStoreContainer stagingStoreContainer, Guid ingestId)
        {
            await stagingStoreContainer.CreateStoreForContextIdAsync(ingestId).ConfigureAwait(false);

            return(await GetCaPMEventStore(stagingStoreContainer, ingestId).ConfigureAwait(false));
        }