Exemplo n.º 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="WorkItem" /> class.
 /// </summary>
 internal WorkItem(ThreadPool.WorkItemCallback functionDelegate, object delegateInputParameters)
 {
     Delegate = functionDelegate;
     DelegateInputParameters = delegateInputParameters;
     WorkItemStateTypeless   = new WorkItemStateTypeless(this);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="WorkItem" /> class.
 /// </summary>
 internal WorkItem(ThreadPool.WorkItemCallback functionDelegate, object delegateInputParameters)
 {
     Delegate = functionDelegate;
     DelegateInputParameters = delegateInputParameters;
     WorkItemStateTypeless = new WorkItemStateTypeless(this);
 }