private async Task applyProjectionsAsync(CancellationToken token) { var streams = PendingChanges.Streams().ToArray(); foreach (var projection in _schema.Events.InlineProjections) { await projection.ApplyAsync(this, streams, token); } }
private void applyProjections() { var streams = PendingChanges.Streams().ToArray(); foreach (var projection in _schema.Events.InlineProjections) { projection.Apply(this, streams); } }
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); } }
private void applyProjections() { var eventPage = new EventPage(PendingChanges.Streams().ToArray()); foreach (var projection in _store.Events.InlineProjections) { projection.Apply(this, eventPage); } }
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); } }
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); } } }
private void applyProjections() { var projections = _schema.Events.As <IProjections>(); projections.Inlines.Each(x => x.Apply(this, PendingChanges.Streams().ToArray())); }