1
0

InternalInterfaces.cs 597 B

12345678910111213141516171819202122
  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. }