示例#1
0
        public async Task UpdateAsync(Order instance, CancellationToken cancellationToken)
        {
            await _eventSource.AppendAsync(instance.OrderNumber, instance.PersistentVersion, instance.Snapshot, instance.GetPendingEvents(), cancellationToken);

            instance.Flush();
        }