This class is a subclass of OperationExecutionScheduler and overrides the ExecuteOperation method for executing operations asynchronously by using a BackgroundWorker for each operation More...
Public Member Functions | |
| OperationsExecutionSchedulerAsyncBackgroundWorker (IScheduler scheduler) | |
| Constructor More... | |
Public Member Functions inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler | |
| OperationsExecutionScheduler (IScheduler scheduler) | |
| Constructor More... | |
| void | AddOperationToExecutionQueue (Operation operation) |
| Adds an operation to the execution queue. This operaton will execute as soon as possible. More... | |
| void | RemoveAllOperationsInQueue () |
| Removes all the operations in the execution queue that are not executing More... | |
Static Public Member Functions | |
| static OperationsExecutionScheduler | CreateOperationsExecutionScheduler (IScheduler scheduler) |
Protected Member Functions | |
| override void | ExecuteOperation (Operation operation) |
| Executes an operation asynchronously by using a BackgroundWorker and, when the execution is completed, it will perform the operation's completion handler using the CompletionHandler executor More... | |
Protected Member Functions inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler | |
| void | OnWillExecuteOperation (Operation operation) |
| This method fires the "OnWillExecuteOperation" using the EventManager More... | |
| void | OnDidExecutedOperation (Operation operation) |
| This method fires the "OnDidExecutedOperation" using the EventManager More... | |
| virtual void | PrepareOperationForExecution (Operation operation) |
| This method must be called from the OperationExecutionScheduler subclasses before an operation starts execution and it will fire the "OnWillExecuteOperation" Event using the EventManager More... | |
| void | OperationExecutionCompleted (Operation operation) |
| This method must be called from the OperationExecutionScheduler subclasses when an operation has completed execution. It will remove the Operation from the "OnWillExecuteOperation" Event using the EventManager More... | |
| virtual Operation | PickOperationToExecute () |
| Returns the next operation to execute, removes it from the OperationsToExecuteQueue, then pushes it to the OperationsToExecuteQueue More... | |
Additional Inherited Members | |
Protected Attributes inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler | |
| int | maxSimultaneousOperations |
Properties inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler | |
| int | MaxSimultaneousOperations [get] |
| Maximum number of simultaneous operations ( Default = 1 ) More... | |
| List< Operation > | OperationsToExecute [get, set] |
| List< Operation > | OperationsInExecution [get, set] |
| int | NumberOfOperationsInQueue [get] |
| The number of operations in the queue waiting to be executed More... | |
| int | NumberOfOperationsInExecution [get] |
| Number of operations that are executing More... | |
| Boolean | IsExecutingOperations [get] |
| True if currently executing operations More... | |
| Boolean | CanPerformOperations [get] |
| True if currently executing fewer operations than the MaxSimultaneousOperations More... | |
| EventsScheduler | EventManager [get, set] |
| Fire the events on the right Dispatcher More... | |
| IScheduler | Scheduler [get, set] |
| Execute the operation's completion handler on the right Dispatcher More... | |
Events inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler | |
| EventHandler< VisionEventOperationArgs > | WillExecuteOperation |
| Fired before start to execute an operation More... | |
| EventHandler< VisionEventOperationArgs > | DidExecuteOperation |
| Fired when an operation execution is completed More... | |
This class is a subclass of OperationExecutionScheduler and overrides the ExecuteOperation method for executing operations asynchronously by using a BackgroundWorker for each operation
| VisionSDK.Operations.Execution.OperationsExecutionSchedulerAsyncBackgroundWorker.OperationsExecutionSchedulerAsyncBackgroundWorker | ( | IScheduler | scheduler | ) |
Constructor
| scheduler | The IScheduler used to execute actions on the right Dispatcher |
|
static |
|
protectedvirtual |
Executes an operation asynchronously by using a BackgroundWorker and, when the execution is completed, it will perform the operation's completion handler using the CompletionHandler executor
| operation | The operation to execute |
Reimplemented from VisionSDK.Operations.Execution.OperationsExecutionScheduler.