You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear developers,
I faced the challenge to trigger some async work on the transaction completed event.
The current ITransactionScope's Complete method is not async compatible. It would be nice if you consider adding async support for this case.
Thank you!
The first option is to make 'Complete' methods async. In this case, it would be also nice to make it virtual in 'DefaultTransactionScope'.
public interface ITransactionScope : IDisposable
{
/// <summary>
/// Completes a transaction (commits or discards the changes).
/// </summary>
ValueTask CompleteAsync();
}
The second option is to use IAsyncDisposable
public interface ITransactionScope : IAsyncDisposable
{
...
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear developers,
I faced the challenge to trigger some async work on the transaction completed event.
The current ITransactionScope's Complete method is not async compatible. It would be nice if you consider adding async support for this case.
Thank you!
The first option is to make 'Complete' methods async. In this case, it would be also nice to make it virtual in 'DefaultTransactionScope'.
The second option is to use IAsyncDisposable
Beta Was this translation helpful? Give feedback.
All reactions