Skip to content

Conversation

SergeiPavlov
Copy link
Collaborator

@SergeiPavlov SergeiPavlov commented Jun 30, 2023

Transactions with this property assign DbCommand.CommandTimeout to time, remaining until the end of entire transaction
If the timeout already come then throws TimeoutException.

Also:

  • refactor Transaction class
  • Make generating Transaction.Guid lazy (it is not used in typical case)

@SergeiPavlov SergeiPavlov requested a review from botinko June 30, 2023 00:29
@SergeiPavlov SergeiPavlov merged commit 3b4347e into master-servicetitan Jun 30, 2023
@SergeiPavlov SergeiPavlov deleted the TransactionTimeout branch June 30, 2023 04:58
SergeiPavlov added a commit that referenced this pull request Jul 5, 2023
* Transaction.Timeout property

* Optimize Transaction ctor

* Optoimize Transaction

* Optimize Transaction.Guid

* Refactoring: PreDbCommandExecuting() method

* Optimize Transaction.Outermost

* Add missed cancellationToken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants