Esempio n. 1
0
 /// <summary>
 /// Gets a filtered list of <see cref="Document"/>s that match the specified criteria.
 /// </summary>
 /// <param name="filter">A collection of parameters to filter by.</param>
 /// <returns>A collection of <see cref="Document"/>s that match the criteria.</returns>
 public Task <Document[]> GetDocumentsAsync(DocumentCollectionParameters filter)
 {
     return(this.client.GetAsync <Document[]>((DocumentCollectionDto)filter));
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the size in bytes of a specified document collection.
 /// </summary>
 /// <param name="filter">A collection of parameters to filter by.</param>
 /// <returns>The size of the selected documents in bytes.</returns>
 public Task <int> GetDocumentsSizeAsync(DocumentCollectionParameters filter)
 {
     return(this.client.GetAsync <int>((DocumentSizeDto)filter));
 }
Esempio n. 3
0
        /// <summary>
        /// Contains contract definitions, not for actual use.
        /// </summary>
        Task <int> IDocumentManager.GetDocumentsSizeAsync(DocumentCollectionParameters filter)
        {
            Contract.Requires <ArgumentNullException>(filter != null);

            return(null);
        }