IThreadPoolService
IThreadPoolService
in assembly SanteDB.Core.Api version 2.1.151.0
Summary
Represents a thread pooling service
Operations
Operation | Response/Return | Input/Parameter | Description |
---|---|---|---|
QueueUserWorkItem | void | Action<Object> action | Queues the specified action into the worker pool |
QueueUserWorkItem | void | Action<TParam> action TParam parm | Queue user work item |
GetWorkerStatus | void | Int32& totalWorkers Int32& availableWorkers Int32& waitingInQueue | Get worker status |
Implementations
DefaultThreadPoolService - (SanteDB.Core.Api)
Represents a thread pool which is implemented separately from the default .net threadpool, this is to reduce the load on the .net framework thread pool
Description
This class is a remnant / adaptation of the original thread pool service from OpenIZ because OpenIZ used PCL which didn't have a thread pool. Additionally it provided statistics on the thread pool load, etc. This has been refactored.
Service Registration
NetThreadPoolService - (SanteDB.Core.Api)
Represents a thread pool which is implemented to wrap .NET thread pool
Description
This class is a remnant / adaptation of the original thread pool service from OpenIZ because OpenIZ used PCL which didn't have a thread pool. Additionally it provided statistics on the thread pool load, etc. This has been refactored.
Service Registration
Example Implementation
References
Last updated