Untergeordnete Seiten
  • IWork

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.38
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download



Table of Contents

The IWork interface exposes methods and properties for the threadpool to be able to process the workload related to the object that implements this interface. It exposes the following attributes to the threadpool:

  • The workload itself which should be performed by the threadpool
  • A property indicating whether or not the threadpool encountered any unhandled exceptions while processing the workload
  • A property holding the desired thread priority for this particular workload
  • An optional description for the workload

Methods

  • void Process() - This method gets called by the threadpool to process the workload

Properties

  • WorkState State { get; set; } - Indicates the current state of the workload
  • string Description { get; set; } - Optional description for this workload
  • Exception Exception { get; set; } - Property which holds any unhandled exception that might have occurred while processing the workload
  • ThreadPriority ThreadPriority { get; set; } - The desired thread priority for this particular workload

   

 

This page has no comments.