123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- namespace Amib.Threading
- {
- #region WorkItemInfo class
-
-
-
- public class WorkItemInfo
- {
-
-
-
- private bool _useCallerCallContext;
-
-
-
- private bool _useCallerHttpContext;
-
-
-
- private bool _disposeOfStateObjects;
-
-
-
- private CallToPostExecute _callToPostExecute;
-
-
-
-
- private PostExecuteWorkItemCallback _postExecuteWorkItemCallback;
-
-
-
-
- private WorkItemPriority _workItemPriority;
- public WorkItemInfo()
- {
- _useCallerCallContext = SmartThreadPool.DefaultUseCallerCallContext;
- _useCallerHttpContext = SmartThreadPool.DefaultUseCallerHttpContext;
- _disposeOfStateObjects = SmartThreadPool.DefaultDisposeOfStateObjects;
- _callToPostExecute = SmartThreadPool.DefaultCallToPostExecute;
- _postExecuteWorkItemCallback = SmartThreadPool.DefaultPostExecuteWorkItemCallback;
- _workItemPriority = SmartThreadPool.DefaultWorkItemPriority;
- }
- public WorkItemInfo(WorkItemInfo workItemInfo)
- {
- _useCallerCallContext = workItemInfo._useCallerCallContext;
- _useCallerHttpContext = workItemInfo._useCallerHttpContext;
- _disposeOfStateObjects = workItemInfo._disposeOfStateObjects;
- _callToPostExecute = workItemInfo._callToPostExecute;
- _postExecuteWorkItemCallback = workItemInfo._postExecuteWorkItemCallback;
- _workItemPriority = workItemInfo._workItemPriority;
- }
- public bool UseCallerCallContext
- {
- get { return _useCallerCallContext; }
- set { _useCallerCallContext = value; }
- }
- public bool UseCallerHttpContext
- {
- get { return _useCallerHttpContext; }
- set { _useCallerHttpContext = value; }
- }
- public bool DisposeOfStateObjects
- {
- get { return _disposeOfStateObjects; }
- set { _disposeOfStateObjects = value; }
- }
- public CallToPostExecute CallToPostExecute
- {
- get { return _callToPostExecute; }
- set { _callToPostExecute = value; }
- }
- public PostExecuteWorkItemCallback PostExecuteWorkItemCallback
- {
- get { return _postExecuteWorkItemCallback; }
- set { _postExecuteWorkItemCallback = value; }
- }
- public WorkItemPriority WorkItemPriority
- {
- get { return _workItemPriority; }
- set { _workItemPriority = value; }
- }
- }
- #endregion
- }
|