This class represents any operation made on the VisionDevice
To execute the operation, call the Execute method.
More...
Public Member Functions | |
| Operation () | |
| Constructor More... | |
| object | Clone () |
| void | AddCompletionHandler (Action< OperationResult > completionHandler) |
| This method sets the completion handler of the operation More... | |
| void | AddCompletionHandler< T > (Action< OperationResult< T >> completionHandler) |
| This method sets the completion handler of the operation More... | |
| virtual void | Execute () |
| This method will execute the operation, if possible. This method will check if CanPerformOperation(). If it returns true it will call PerformOperation() More... | |
Static Public Member Functions | |
| static void | DeleteOperation (Operation operation) |
| Delete an Operation and its completion handler More... | |
Protected Member Functions | |
| virtual bool | CanPerformOperation () |
| An Override to check anything that causes an Operation to fail before its execution. This method should be called before performing the operation so the operation will be executed only if this method returns true More... | |
| virtual void | PerformOperation () |
| Override this method with a new one that contains the operation to execute More... | |
Protected Attributes | |
| OperationResult | result |
| The Operation Result More... | |
Properties | |
| String | Name [get, set] |
| The Operation's Name By Default this is set with the Operation's Type Name More... | |
| OperationResult | Result [get, set] |
| The Operation Result More... | |
| Action | CompletionHandler [get, set] |
| A delegate associated with the operation This delegate never gets called by this class itself More... | |
This class represents any operation made on the VisionDevice
To execute the operation, call the Execute method.
| VisionSDK.Operations.Operation.Operation | ( | ) |
Constructor
| void VisionSDK.Operations.Operation.AddCompletionHandler | ( | Action< OperationResult > | completionHandler | ) |
This method sets the completion handler of the operation
| completionHandler | The Completion Handler |
| void VisionSDK.Operations.Operation.AddCompletionHandler< T > | ( | Action< OperationResult< T >> | completionHandler | ) |
This method sets the completion handler of the operation
| T | The Type of the returned value stored inside the OperationResult |
| completionHandler | The Completion Handler |
|
protectedvirtual |
An Override to check anything that causes an Operation to fail before its execution.
This method should be called before performing the operation so the operation will be executed only if this method returns true
Reimplemented in VisionSDK.Operations.VisionOperation, VisionSDK.Operations.VisionSetFileOperation< T >, VisionSDK.Operations.VisionGetFileOperation< T >, VisionSDK.Operations.VisionFileOperation, VisionSDK.Operations.VisionGetOperation< T >, VisionSDK.Operations.VisionSetOperation< T >, VisionSDK.Operations.VisionGetPortOperation< T >, VisionSDK.Operations.VisionSetPortOperation< T >, and VisionSDK.Operations.VisionPortOperation.
| object VisionSDK.Operations.Operation.Clone | ( | ) |
|
static |
|
virtual |
This method will execute the operation, if possible.
This method will check if CanPerformOperation(). If it returns true it will call PerformOperation()
Reimplemented in VisionSDK.Operations.VisionOperation.
|
protectedvirtual |
Override this method with a new one that contains the operation to execute
|
protected |
The Operation Result
|
getset |
A delegate associated with the operation
This delegate never gets called by this class itself
|
getset |
|
getset |
The Operation Result