[CSHARP-2455] TransactionScope like implementation for IClientSessionHandle Created: 13/Dec/18 Updated: 31/Mar/22 |
|
| Status: | Backlog |
| Project: | C# Driver |
| Component/s: | API, Session Management |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Ivan Artemov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Description |
|
Current SessionApi is simple, but not fit to developer requirements. When i need use session across many repositories - it need to pass IClientSessionHandle to each repository method. But repository interface is domain contract and we need some ambient implementation. This api must be optional without any incomatibility to other driver api Example:
It is not usefull and clear We want to see something like this:
|
| Comments |
| Comment by Ayesh Silva [ 03/Sep/21 ] | ||||||||||||||||
|
Try this example | ||||||||||||||||
| Comment by zeng pu [ 11/Mar/20 ] | ||||||||||||||||
|
I also follow this,this is very important function | ||||||||||||||||
| Comment by shubham saini [ 05/Jan/20 ] | ||||||||||||||||
|
The above approach does not seem to work with the latest driver. We need to pass in the session explicitly with each insert, update, delete operation. It makes a compelling case for creating a ResourceManager that can be enlisted under Transaction Manager. | ||||||||||||||||
| Comment by Ivan Artemov [ 17/Dec/18 ] | ||||||||||||||||
|