Table of Contents

Class IndexerEndpoint<TElementEndpoint>

Namespace
TypedRest.Endpoints.Generic
Assembly
TypedRest.dll

Endpoint that addresses child TElementEndpoints by ID.

public class IndexerEndpoint<TElementEndpoint> : EndpointBase, IIndexerEndpoint<TElementEndpoint>, IEndpoint where TElementEndpoint : IEndpoint

Type Parameters

TElementEndpoint

The type of IEndpoint to provide for individual elements. Must have a public constructor with an IEndpoint and an Uri or string parameter.

Inheritance
IndexerEndpoint<TElementEndpoint>
Implements
IIndexerEndpoint<TElementEndpoint>
Inherited Members

Constructors

IndexerEndpoint(IEndpoint, string)

Creates a new indexer endpoint.

public IndexerEndpoint(IEndpoint referrer, string relativeUri)

Parameters

referrer IEndpoint

The endpoint used to navigate to this one.

relativeUri string

The URI of this endpoint relative to the referrer's. Add a ./ prefix here to imply a trailing slash referrer's URI.

IndexerEndpoint(IEndpoint, Uri)

Creates a new indexer endpoint.

public IndexerEndpoint(IEndpoint referrer, Uri relativeUri)

Parameters

referrer IEndpoint

The endpoint used to navigate to this one.

relativeUri Uri

The URI of this endpoint relative to the referrer's.

Properties

this[string]

Returns an element endpoint for a specific child element.

public virtual TElementEndpoint this[string id] { get; }

Parameters

id string

The ID identifying the entity.

Property Value

TElementEndpoint