Method StartOperation
StartOperation<TObject>(AsyncOperationBase<TObject>, AsyncOperationHandle)
Registers an operation with the ResourceManager. The operation will be executed when the dependency
completes.
This should only be used when creating custom operations.
Declaration
public AsyncOperationHandle<TObject> StartOperation<TObject>(AsyncOperationBase<TObject> operation, AsyncOperationHandle dependency)
Parameters
Type | Name | Description |
---|---|---|
Async |
operation | The custom AsyncOperationBase object |
Async |
dependency | Execution of the operation will not occur until this handle completes. A default handle can be passed if no dependency is required. |
Returns
Type | Description |
---|---|
Async |
The AsyncOperationHandle used to access the result and status of the operation. |
Type Parameters
Name | Description |
---|---|
TObject | Object type associated with this operation. |