Class GetCountRequest<T>
Request built for use by a DataStore<T> to get count of entities.
Inheritance
System.Object
Request<T, System.UInt32>
ReadRequest<T, System.UInt32>
GetCountRequest<T>
Inherited Members
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class GetCountRequest<T> : ReadRequest<T, uint>
Type Parameters
Name | Description |
---|---|
T | The type of an entity. |
Constructors
| Improve this Doc View SourceGetCountRequest(AbstractClient, String, ICache<T>, ReadPolicy, Boolean, KinveyDelegate<UInt32>, IQueryable<Object>)
Initializes a new instance of the GetCountRequest<T> class.
Declaration
public GetCountRequest(AbstractClient client, string collection, ICache<T> cache, ReadPolicy policy, bool deltaSetFetchingEnabled, KinveyDelegate<uint> cacheDelegate, IQueryable<object> query)
Parameters
Type | Name | Description |
---|---|---|
AbstractClient | client | Client that the user is logged in. |
System.String | collection | Collection name. |
ICache<T> | cache | Cache. |
ReadPolicy | policy | Read policy. |
System.Boolean | deltaSetFetchingEnabled | If set to |
KinveyDelegate<System.UInt32> | cacheDelegate | Cache delegate. |
IQueryable<System.Object> | query | Query. |
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, System.UInt32>.Cancel()
|
Improve this Doc
View Source
ExecuteAsync()
Executes the request asynchronously.
Declaration
public override Task<uint> ExecuteAsync()
Returns
Type | Description |
---|---|
Task<System.UInt32> | The async task with the request result. |
Overrides
Kinvey.Request<T, System.UInt32>.ExecuteAsync()