コード例 #1
0
        public static async Task <(IEnumerable <IEvent>, long)> LoadEventStreamAsync(this IReliableStateManager stateManager, string streamName,
                                                                                     long version, Func <EventData, IEvent> deserializer, string streamsName = defaultStreamsName)
        {
            using (var tx = stateManager.CreateTransaction())
            {
                var result = await stateManager.LoadEventStreamAsync(tx, streamName, version, deserializer, streamsName);

                await tx.CommitAsync();

                return(result);
            }
        }