/// <summary> /// Gets a count of the articles belonging to the given blog. /// </summary> /// <param name="blogId">The blog that the articles belong to.</param> /// <param name="filter">Options for filtering the result.</param> public virtual async Task <int> CountAsync(long blogId, ArticleCountFilter filter = null) { return(await ExecuteGetAsync <int>($"blogs/{blogId}/articles/count.json", "count", filter)); }
/// <summary> /// Gets a count of the articles belonging to the given blog. /// </summary> /// <param name="blogId">The blog that the articles belong to.</param> /// <param name="filter">Options for filtering the result.</param> /// <param name="cancellationToken">Cancellation Token</param> public virtual async Task <int> CountAsync(long blogId, ArticleCountFilter filter = null, CancellationToken cancellationToken = default) { return(await ExecuteGetAsync <int>($"blogs/{blogId}/articles/count.json", "count", filter, cancellationToken)); }