コード例 #1
0
        public async Task <ActionResult> Get(CancellationToken cancellationToken)
        {
            var streams = await _svc.ReadEventStreamsAsync(null, cancellationToken : cancellationToken);

            var lst = new List <Aggregate <TAggregate> >();

            foreach (var es in streams)
            {
                var m = new Aggregate <TAggregate>(_svc, es.StreamId);

                await m.BuildAsync(true, cancellationToken);

                lst.Add(m);
            }

            return(Ok(lst.ToList()));
        }