Beispiel #1
0
        public Task StopAsync(CancellationToken cancellationToken)
        {
            _projectionManager.Stop();
            _esConnection.Close();

            return(Task.CompletedTask);
        }
Beispiel #2
0
        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);
        }