https://github.com/shuttle/shuttle.core.data.threaddatabasecontextscope
Create a new DatabaseContextScope per processor thread.
https://github.com/shuttle/shuttle.core.data.threaddatabasecontextscope
Last synced: about 1 month ago
JSON representation
Create a new DatabaseContextScope per processor thread.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.core.data.threaddatabasecontextscope
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2024-07-26T14:27:44.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-03-02T14:02:49.000Z (3 months ago)
- Last Synced: 2025-03-23T22:14:24.397Z (about 2 months ago)
- Language: C#
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shuttle.Core.Data.ThreadDatabaseContextScope
This package is no longer being maintained as scopes ar eno longer supported. Rather use the `DatabaseContextFactory` to create a new `IDatabaseContext` instance where you need it, such as in your repository implementation.
```
PM> Install-Package Shuttle.Core.Data.ThreadDatabaseContextScope
```Provides a mechanism to create a new database context scope per processor thread.
In order to create a new `DatabaseContextScope` per processor thread the the pools have to be created by calling the `Create` method on the `IProcessorThreadPoolFactory` implementation.
## Configuration
```c#
services.AddThreadDatabaseContextScope();
```