Execute() public method

Execute the work item and the post execute
public Execute ( ) : void
return void
コード例 #1
0
 // Token: 0x060017F3 RID: 6131
 // RVA: 0x000745E8 File Offset: 0x000727E8
 private void ExecuteWorkItem(WorkItem workItem_0)
 {
     this._windowsPCs.SampleWorkItemsWaitTime(workItem_0.WaitingTime);
     this._localPCs.SampleWorkItemsWaitTime(workItem_0.WaitingTime);
     try
     {
         workItem_0.Execute();
     }
     finally
     {
         this._windowsPCs.SampleWorkItemsProcessTime(workItem_0.ProcessTime);
         this._localPCs.SampleWorkItemsProcessTime(workItem_0.ProcessTime);
     }
 }
コード例 #2
0
 private void ExecuteWorkItem(WorkItem workItem)
 {
     _pcs.SampleWorkItemsWaitTime(workItem.WaitingTime);
     try
     {
         workItem.Execute();
     }
     catch
     {
         throw;
     }
     finally
     {
         _pcs.SampleWorkItemsProcessTime(workItem.ProcessTime);
     }
 }