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