Class PushRequest<T>
Request operation for pushing of data from the library to the backend.
Inherited Members
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class PushRequest<T> : WriteRequest<T, PushDataStoreResponse<T>>
Type Parameters
Name | Description |
---|---|
T | The type of an entity. |
Constructors
| Improve this Doc View SourcePushRequest(AbstractClient, String, ICache<T>, ISyncQueue, WritePolicy)
Initializes a new instance of the PushRequest<T> class.
Declaration
public PushRequest(AbstractClient client, string collection, ICache<T> cache, ISyncQueue queue, WritePolicy policy)
Parameters
Type | Name | Description |
---|---|---|
AbstractClient | client | Client that the user is logged in. |
System.String | collection | Collection name. |
ICache<T> | cache | Cache. |
ISyncQueue | queue | Synchronization queue. |
WritePolicy | policy | Write policy. |
Methods
| Improve this Doc View SourceCancel()
Communicates the request for cancellation.
Declaration
public override Task<bool> Cancel()
Returns
Type | Description |
---|---|
Task<System.Boolean> | The async task with the boolean result. If the result is |
Overrides
Kinvey.Request<T, Kinvey.PushDataStoreResponse<T>>.Cancel()
|
Improve this Doc
View Source
ExecuteAsync()
Executes the request asynchronously.
Declaration
public override Task<PushDataStoreResponse<T>> ExecuteAsync()
Returns
Type | Description |
---|---|
Task<PushDataStoreResponse<T>> | The async task with the request result. |
Overrides
Kinvey.Request<T, Kinvey.PushDataStoreResponse<T>>.ExecuteAsync()