Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
        private void applyProjections()
        {
            var streams = PendingChanges.Streams().ToArray();

            foreach (var projection in _schema.Events.InlineProjections)
            {
                projection.Apply(this, streams);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 4
0
        private void applyProjections()
        {
            var eventPage = new EventPage(PendingChanges.Streams().ToArray());

            foreach (var projection in _store.Events.InlineProjections)
            {
                projection.Apply(this, eventPage);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
                }
            }
        }
Ejemplo n.º 7
0
        private void applyProjections()
        {
            var projections = _schema.Events.As <IProjections>();

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