Esempio n. 1
0
        public async Task TakeSnapshotAsync <T>(Guid aggregateId) where T : IAggregateRoot
        {
            var aggregate = await GetByIdAsync <T>(aggregateId);

            await _snapshotService.TakeAndSaveAsync(aggregate);
        }