Table of Contents

Class AggregateLinkExtractor

Namespace
TypedRest.Links
Assembly
TypedRest.dll

Combines the results of multiple ILinkExtractors.

public sealed class AggregateLinkExtractor : ILinkExtractor
Inheritance
AggregateLinkExtractor
Implements
Inherited Members

Constructors

Creates a new aggregate link extractor.

public AggregateLinkExtractor(params ILinkExtractor[] extractors)

Parameters

extractors ILinkExtractor[]

The link extractors to aggregate.

Methods

Extracts links from the response.

public Task<IReadOnlyList<Link>> GetLinksAsync(HttpResponseMessage response)

Parameters

response HttpResponseMessage

Returns

Task<IReadOnlyList<Link>>

Exceptions

FormatException

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