Пример #1
0
        private async Task applyProjectionsAsync(CancellationToken token)
        {
            var streams = PendingChanges.Streams().ToArray();

            foreach (var projection in _schema.Events.InlineProjections)
            {
                await projection.ApplyAsync(this, streams, token);
            }
        }
Пример #2
0
        private void applyProjections()
        {
            var streams = PendingChanges.Streams().ToArray();

            foreach (var projection in _schema.Events.InlineProjections)
            {
                projection.Apply(this, streams);
            }
        }
Пример #3
0
        private async Task applyProjectionsAsync(CancellationToken token)
        {
            var eventPage = new EventPage(PendingChanges.Streams().ToArray());

            foreach (var projection in _store.Events.InlineProjections)
            {
                await projection.ApplyAsync(this, eventPage, token).ConfigureAwait(false);
            }
        }
Пример #4
0
        private void applyProjections()
        {
            var eventPage = new EventPage(PendingChanges.Streams().ToArray());

            foreach (var projection in _store.Events.InlineProjections)
            {
                projection.Apply(this, eventPage);
            }
        }
Пример #5
0
        private async Task applyProjectionsAsync(CancellationToken token)
        {
            var projections = _schema.Events.As <IProjections>();

            foreach (var projection in projections.Inlines)
            {
                await projection.ApplyAsync(this, PendingChanges.Streams().ToArray(), token).ConfigureAwait(false);
            }
        }
Пример #6
0
        private void applyProjections()
        {
            var streams = PendingChanges.Streams().ToArray();

            if (streams.Length > 0)
            {
                var eventPage = new EventPage(streams);
                foreach (var projection in DocumentStore.Events.InlineProjections)
                {
                    projection.Apply(this, eventPage);
                }
            }
        }
Пример #7
0
        private void applyProjections()
        {
            var projections = _schema.Events.As <IProjections>();

            projections.Inlines.Each(x => x.Apply(this, PendingChanges.Streams().ToArray()));
        }