public Task StopAsync(CancellationToken cancellationToken) { _projectionManager.Stop(); _esConnection.Close(); return(Task.CompletedTask); }
protected override async Task Setup() { _waitForProjection = new AutoResetEvent(false); _projection = new ConnectedProjectionName(typeof(TrackHandledEventsProjection)); await PushToStream(Fixture.Create <SomethingHappened>()); ProjectionManager.Start(); _waitForProjection.WaitOne(); _waitForProjection.Reset(); ProjectionManager.Stop(); await Task.Delay(500); }