Class SaveRequest<T>
Represents a request to save an entity.
Inherited Members
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class SaveRequest<T> : WriteRequest<T, T>
Type Parameters
Name | Description |
---|---|
T | The type of an entity. |
Constructors
| Improve this Doc View SourceSaveRequest(T, AbstractClient, String, ICache<T>, ISyncQueue, WritePolicy)
Initializes a new instance of the SaveRequest<T> class.
Declaration
public SaveRequest(T entity, AbstractClient client, string collection, ICache<T> cache, ISyncQueue sync, WritePolicy policy)
Parameters
Type | Name | Description |
---|---|---|
T | entity | Entity. |
AbstractClient | client | Client that the user is logged in. |
System.String | collection | Collection name. |
ICache<T> | cache | Cache. |
ISyncQueue | sync | 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, T>.Cancel()
|
Improve this Doc
View Source
ExecuteAsync()
Executes the request asynchronously.
Declaration
public override Task<T> ExecuteAsync()
Returns
Type | Description |
---|---|
Task<T> | The async task with the request result. |
Overrides
Kinvey.Request<T, T>.ExecuteAsync()