Пример #1
0
        private async Task Test_Async_TransactionScope_Private()
        {
            using (var scope = TransactionScopeFactory.CreateReadCommitted(TransactionScopeOption.Required, null, TransactionScopeAsyncFlowOption.Enabled))
            {
                var address = this.model.Address.Create();

                address.Street = "Async Street";

                var task = Task.Delay(100);

                await task;

                scope.Complete();
            }
        }