Skip to content

Transaction.Timeout property #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 30, 2023
Merged

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