Interface IAsyncOperation
Base interface of all async ops
Namespace: ResourceManagement
Syntax
public interface IAsyncOperation : IEnumerator
Properties
context
Gets the context object related to this operation, usually set to the IResourceLocation.
Declaration
object context { get; }
Property Value
| Type | Description |
|---|---|
| System.Object | The context object. |
error
Gets the exception that caused this operation to change its status to Failure.
Declaration
Exception error { get; }
Property Value
| Type | Description |
|---|---|
| Exception | The exception. |
isDone
Gets a value indicating whether this IAsyncOperation is done.
Declaration
bool isDone { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
percentComplete
Gets the percent complete of this operation.
Declaration
float percentComplete { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The percent complete. |
result
Gets the result.
Declaration
object result { get; }
Property Value
| Type | Description |
|---|---|
| System.Object | The result. |
status
returns the status of the operation
Declaration
AsyncOperationStatus status { get; }
Property Value
| Type | Description |
|---|---|
| AsyncOperationStatus |
|
Methods
ResetStatus()
Reset status and error
Declaration
void ResetStatus()
Events
completed
Occurs when completed.
Declaration
event Action<IAsyncOperation> completed
Event Type
| Type | Description |
|---|---|
| Action<IAsyncOperation> |