TypedRest for .NET 1.3.6
build type-safe fluent-style REST API clients
TypedRest.Links.AggregateLinkExtractor Class Reference

Combines the results of multiple ILinkExtractors. More...

Inheritance diagram for TypedRest.Links.AggregateLinkExtractor:
TypedRest.Links.ILinkExtractor

Public Member Functions

 AggregateLinkExtractor (params ILinkExtractor[] extractors)
 Creates a new aggregate link extractor. More...
 
async Task< IReadOnlyList< Link > > GetLinksAsync (HttpResponseMessage response)
 Extracts links from the response . More...
 

Detailed Description

Combines the results of multiple ILinkExtractors.

Constructor & Destructor Documentation

◆ AggregateLinkExtractor()

TypedRest.Links.AggregateLinkExtractor.AggregateLinkExtractor ( params ILinkExtractor[]  extractors)
inline

Creates a new aggregate link extractor.

Parameters
extractorsThe link extractors to aggregate.

Member Function Documentation

◆ GetLinksAsync()

async Task< IReadOnlyList< Link > > TypedRest.Links.AggregateLinkExtractor.GetLinksAsync ( HttpResponseMessage  response)
inline

Extracts links from the response .

Exceptions
FormatExceptionOne or more of the links found are invalid (e.g. missing a 'rel' type).

Implements TypedRest.Links.ILinkExtractor.


The documentation for this class was generated from the following file: