Runtime: IAsyncDisposable TransactionScope

Created on 4 Oct 2019  路  3Comments  路  Source: dotnet/runtime

TransactionScope is a disposable type that almost always has I/O work to do on disposal.

Are there any plans for making TransactionScope implement IAsyncDisposable? (I am not aware of how readily the ADO.NET methods involved are available as async.)

api-suggestion area-System.Transactions enhancement

Most helpful comment

@Timovzl We didn't have plans to do this, but we will consider it for 5.0.0. We need to do some investigation first to see how complicated the work will be.

All 3 comments

@Timovzl We didn't have plans to do this, but we will consider it for 5.0.0. We need to do some investigation first to see how complicated the work will be.

Based on the votes on this Stackoverflow question (of mine) about that, it looks to me this feature is awaited by many people.

I don't understand either how this isn't included already. It is such a basic feature and together with https://github.com/dotnet/corefx/issues/42341, TransactionScope is basically not usable right now.

Was this page helpful?
0 / 5 - 0 ratings