Class ApiOperation<T>
API Operation
Inherited Members
Namespace: Unity.Services.Apis.Shared
Assembly: solution.dll
Syntax
public class ApiOperation<T> : ApiOperation
Type Parameters
Name | Description |
---|---|
T | The model associated to the response |
Properties
AsTask
Gets an awaiter used to await this Task.
Declaration
public Task<ApiResponse<T>> AsTask { get; }
Property Value
Type | Description |
---|---|
Task<ApiResponse<T>> |
Response
Gets the response of this operation
Declaration
public ApiResponse<T> Response { get; }
Property Value
Type | Description |
---|---|
ApiResponse<T> |
Methods
GetAwaiter()
Gets an awaiter used to await this Task.
Declaration
public TaskAwaiter<ApiResponse<T>> GetAwaiter()
Returns
Type | Description |
---|---|
TaskAwaiter<ApiResponse<T>> | An awaiter instance |
Events
Completed
Get notified when the operation completes
Declaration
public event Action<ApiResponse<T>> Completed
Event Type
Type | Description |
---|---|
Action<ApiResponse<T>> |