Table of Contents

Class CollectionEndpoint<TEntity>

Namespace
TypedRest.Endpoints.Generic
Assembly
TypedRest.dll

Endpoint for a collection of TEntitys addressable as ElementEndpoint<TEntity>s.

public class CollectionEndpoint<TEntity> : CollectionEndpoint<TEntity, ElementEndpoint<TEntity>>, ICachingEndpoint, ICollectionEndpoint<TEntity, ElementEndpoint<TEntity>>, IIndexerEndpoint<ElementEndpoint<TEntity>>, ICollectionEndpoint<TEntity>, ICollectionEndpoint<TEntity, IElementEndpoint<TEntity>>, IIndexerEndpoint<IElementEndpoint<TEntity>>, IEndpoint where TEntity : class

Type Parameters

TEntity

The type of individual elements in the collection.

Inheritance
CollectionEndpoint<TEntity>
Implements
Inherited Members

Constructors

CollectionEndpoint(IEndpoint, string)

Creates a new collection endpoint.

public CollectionEndpoint(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.

CollectionEndpoint(IEndpoint, Uri)

Creates a new collection endpoint.

public CollectionEndpoint(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.