public async Task StartInitializationModeAsync() { _logger.LogDebug("StartInitializationMode"); _initEntityStore = new InMemoryEntityStore(new OptionsWrapper <InMemoryEntityStoreOptions>( new InMemoryEntityStoreOptions()), new InMemoryEntityStoreConnectionProvider(), _loggerFactory, NullCacheClient.Instance, new OptionsWrapper <CacheOptions>( new CacheOptions { CachingDisabled = true } ) ); IsInitializing = true; IsLiveProcessing = false; IsReady = false; Status = new ProjectionStatus(); Status.SetEntityId(ProjectorId); Status.LastCheckPoint = -1; Status.ProjectorId = ProjectorId; Status.StreamName = StreamName; await EntityStore.InsertItemAsync(Status, _cancellationToken).ConfigureAwait(false); }
public async Task StartInitializationModeAsync() { _logger.LogDebug("StartInitializationMode"); _initEntityStore = new InMemoryEntityStore(new InMemoryEntityStoreOptions { CachingDisabled = true, CacheClient = NullCacheClient.Instance, LoggerFactory = _loggerFactory }, new InMemoryEntityStoreConnectionProvider()); InitializationMode = true; IsLiveProcessing = false; IsReady = false; Status = new ProjectionStatus(); Status.SetEntityId(ProjectorId); Status.LastCheckPoint = -1; await _initEntityStore.InsertItemAsync(Status); }