InternalInterfaces.cs 700 B

123456789101112131415161718192021222324252627
  1. namespace Amib.Threading.Internal
  2. {
  3. /// <summary>
  4. /// An internal delegate to call when the WorkItem starts or completes
  5. /// </summary>
  6. internal delegate void WorkItemStateCallback(WorkItem workItem);
  7. internal interface IInternalWorkItemResult
  8. {
  9. event WorkItemStateCallback OnWorkItemStarted;
  10. event WorkItemStateCallback OnWorkItemCompleted;
  11. }
  12. internal interface IInternalWaitableResult
  13. {
  14. /// <summary>
  15. /// This method is intent for internal use.
  16. /// </summary>
  17. IWorkItemResult GetWorkItemResult();
  18. }
  19. public interface IHasWorkItemPriority
  20. {
  21. WorkItemPriority WorkItemPriority { get; }
  22. }
  23. }