Transaction.Timeout property (#129)#327
Transaction.Timeout property (#129)#327SergeiPavlov wants to merge 2 commits intoDataObjects-NET:masterfrom
Transaction.Timeout property (#129)#327Conversation
* Transaction.Timeout property * Optimize Transaction ctor * Optoimize Transaction * Optimize Transaction.Guid * Refactoring: PreDbCommandExecuting() method * Optimize Transaction.Outermost * Add missed cancellationToken
|
Yes, "On events" was our initial implementaion But after we implemented another feaure "SessionGuard" for detecting concurrent usage of Session, it had a conflict with |
|
It still conflicts with bunch of other cases. I hardly can allow this. It is very shady in terms of predictability. Maybe we can improve extendibility in a way that will allow you to implement it like a session service or something. What about sessionhandler replacement? |
|
As I understand you need some code which will work not in context of all sessions, like events do, but in context of one exact session. Am I right? |
|
I did not use SessionHandler, have to learn it. Regarding to Transaction.Timeout, we need to limit execution time of code like: |
This property is useful for multi-command transactions.
Each
DbCommand.CommandTimeoutproperty is assigned to remaining time untilTransaction.Timestamp + Timeoutdeadline.Also:
Transactionclass