Class Operation<ResultType>
The operation to execute
Inheritance
object
Operation<ResultType>
Implements
Namespace: i5.Toolkit.Core.ServiceCore
Assembly: cs.temp.dll.dll
Syntax
public class Operation<ResultType> : IOperation
Type Parameters
Name | Description |
---|---|
ResultType | The type of the operation's return value |
Constructors
Operation(Action<Operation<ResultType>>)
Creates a new operation instance with the given callback method
Declaration
public Operation(Action<Operation<ResultType>> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<><Operation<ResultType>> | callback | The callback method which is invoked once the operation has finished |
Fields
callback
The callback method which is invoked once the operation has finished The call will provide the result
Declaration
public Action<Operation<ResultType>> callback
Field Value
Type | Description |
---|---|
Action<><Operation<ResultType>> |
result
The result of the operation once it is finished
Declaration
public ResultType result
Field Value
Type | Description |
---|---|
ResultType |
status
The status of the operation
Declaration
public OperationStatus status
Field Value
Type | Description |
---|---|
OperationStatus |
Methods
ReturnCallback()
Invokes the callback method
Declaration
public void ReturnCallback()