2013-05-01 22:00:46 +00:00
|
|
|
|
|
|
|
namespace Amib.Threading.Internal
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// An internal delegate to call when the WorkItem starts or completes
|
|
|
|
/// </summary>
|
|
|
|
internal delegate void WorkItemStateCallback(WorkItem workItem);
|
|
|
|
|
|
|
|
internal interface IInternalWorkItemResult
|
|
|
|
{
|
|
|
|
event WorkItemStateCallback OnWorkItemStarted;
|
|
|
|
event WorkItemStateCallback OnWorkItemCompleted;
|
|
|
|
}
|
|
|
|
|
|
|
|
internal interface IInternalWaitableResult
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// This method is intent for internal use.
|
2017-01-05 19:07:37 +00:00
|
|
|
/// </summary>
|
2013-05-01 22:00:46 +00:00
|
|
|
IWorkItemResult GetWorkItemResult();
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface IHasWorkItemPriority
|
|
|
|
{
|
|
|
|
WorkItemPriority WorkItemPriority { get; }
|
|
|
|
}
|
|
|
|
}
|