Пример #1
0
    private async Task <IReadOnlyCollection <int> > GetItemsIndex()
    {
        var request  = new ItemsIndexRequest();
        var response = await request.SendAsync(http, CancellationToken.None);

        return(response.Values);
    }
Пример #2
0
    public Task <IReplicaSet <int> > GetItemsIndex(CancellationToken cancellationToken = default)
    {
        var request = new ItemsIndexRequest();

        return(request.SendAsync(http, cancellationToken));
    }