storage
storage copied to clipboard
Limitations on transactions?
Assume the following scenario for using Storage.Net in a server application:
- Server uses an IBlobStorage registered as singleton
- First request starts
- First request: Opens a BLOB transaction
- First request: Adds a BLOB (a)
- Second request starts
- Second request: Opens a BLOB transaction
- Second request: Adds a BLOB (b)
- First request: Adds a BLOB (c)
- First request: BLOB rollback
- Second request: Adds a BLOB (d)
- Second request: BLOB commit
- Second request ends
- First request ends
What's the state of the created BLOBs/transactions when both requests use the same IBlobStorage instance (due to being a singleton)?